User prompt
make tree asset upside down
User prompt
if you see tree asset make it mirrored to tube
User prompt
make character less bend to right when touched screen
Code edit (1 edits merged)
Please save this source code
User prompt
make sky asset dark blue to black
User prompt
move background behind sky asset
User prompt
make background behind character
User prompt
back ground isimli asseti yavaşça sola doğru kaysın ve sağdan aynı assetin bir kopyası gelsin bu şekilde arka plan hiç boş kalmayacak ve hareket halinde gözükecek ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
eğer background adındaki asseti görüyorsan o bir arka plan onu arka plan olarak tasarladım ekranın ortasına yerleştir
User prompt
lower the velocity of tubes
User prompt
lower the velocity of tubes and spawn another tube when a tube reaches middle of screen
User prompt
Decrease the time between tube spawns and make them visible until they leave screen
User prompt
dont wait one tube to disapper to spawn another
User prompt
make it 600
User prompt
make it 1200
User prompt
make the gap between two tube 1800
User prompt
decrease velocity of tubes
User prompt
increase jump strength little bit and make decrease the time between tubes 2 time
User prompt
Decrease the time between tube spawns but keep velocity the same
User prompt
decrease velocity of tubes
User prompt
make spawn time of tubes less
User prompt
i need tubes to come faster
User prompt
increase tube spawn rate
User prompt
decrease gravity strength and decrease jump strength a bit
User prompt
make tube max height 3900
/**** * Classes ****/ //<Write imports for supported plugins here> // Character class with gravity and jump functionality var Character = Container.expand(function () { var self = Container.call(this); var characterGraphics = self.attachAsset('character', { anchorX: 0.5, anchorY: 0.5 }); self.velocityY = 0; self.gravity = 0.3; self.jumpStrength = -12; self.update = function () { self.velocityY += self.gravity; self.y += self.velocityY; // Prevent character from falling through the ground if (self.y > 2732 - 100) { self.y = 2732 - 100; self.velocityY = 0; } }; self.jump = function () { // Allow jump even if in the air self.velocityY = self.jumpStrength; }; }); // Tube class with a medium velocity moving to the left and spawning on top and bottom var Tube = Container.expand(function () { var self = Container.call(this); var tubeGraphics = self.attachAsset('tube', { anchorX: 0.5, anchorY: 0.5, width: 300, height: Math.floor(Math.random() * (4200 - 400 + 1)) + 400 }); self.velocityX = -2; self.update = function () { if (self.x < -200) { self.x = 2048 + 100; tubeGraphics.height = Math.floor(Math.random() * (3900 - 400 + 1)) + 400; } self.x += self.velocityX; // Respawn tube on the right side of the screen when it goes off the left side if (self.x < -200) { self.x = 2048 + 200; // Spawn tube only on the bottom self.y = 2732 - 150; // Change tube height to random values between 4200 and 400 tubeGraphics.height = Math.floor(Math.random() * (3900 - 400 + 1)) + 400; } }; }); /**** * Initialize Game ****/ var game = new LK.Game({ backgroundColor: 0x000000 //Init game with black background }); /**** * Game Code ****/ // Initialize assets used in this game. // Create and position the character in the middle of the screen var character = game.addChild(new Character()); character.x = 2048 / 2; character.y = 2732 / 2; // Create and position the sky at the top of the screen var sky = LK.getAsset('sky', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 5 }); game.addChild(sky); // Create and position the ground at the bottom of the screen var ground = LK.getAsset('ground', { anchorX: 0.5, anchorY: 0.5, x: 2048 / 2, y: 2732 - 5 }); game.addChild(ground); // Create and position the tube off the right side of the screen var tube = game.addChild(new Tube()); tube.x = 2048 + 50; tube.y = 2732 - 150; // Handle touch events to make the character jump game.down = function (x, y, obj) { character.jump(); character.rotation = 0.2; LK.setTimeout(function () { character.rotation = 0; }, 200); }; // Update game state every tick game.update = function () { character.update(); for (var i = 0; i < 5; i++) { tube.update(); } };
===================================================================
--- original.js
+++ change.js
@@ -34,9 +34,9 @@
anchorY: 0.5,
width: 300,
height: Math.floor(Math.random() * (4200 - 400 + 1)) + 400
});
- self.velocityX = -3;
+ self.velocityX = -2;
self.update = function () {
if (self.x < -200) {
self.x = 2048 + 100;
tubeGraphics.height = Math.floor(Math.random() * (3900 - 400 + 1)) + 400;
green theme forest by green tones to the sky , not to much detail just simple tree shadows trees has no details just shadowed green and shadowless places, beautiful view. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows
hyper realistic nature too reallistic proffational blue sky white clouds yellow sun an over realistic mountain view with full of trees and sun and clouds view a forest of a mountain challangeing mountain road. No background.cool background. view background. No shadows. 2d. In-Game asset. flat