User prompt
pausing just slows it down, make it stop completely
User prompt
make the action freeze when the pause button is clicked
User prompt
Please fix the bug: 'Uncaught TypeError: LK.pauseGame is not a function' in or related to this line: 'LK.pauseGame();' Line Number: 70
User prompt
make a pause button
User prompt
after 1 jump the player's jump height resets
User prompt
make the player jump a little bit further
User prompt
make them jump a little bit higher
User prompt
make the jump height stay consistent
User prompt
make them go half that high when they jump
Code edit (1 edits merged)
Please save this source code
User prompt
don't make them go so high in the air
User prompt
when the player jumps, add a .25 seconds more where they are just in the air before they start their descent
User prompt
the spikes should always be coming to the left, even if the player is not at the middle x axis
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'update')' in or related to this line: 'self.update = function () {' Line Number: 126
User prompt
make it so when the cube reaches the middle x axis, it stops moving to the right and the ground starts to move to the left
User prompt
make the ground extend to the bottom of the screen
User prompt
make a sprite that is under the player and spikes called 'ground' that currently doesn't do anything
User prompt
make sure the player stays in the middle when they jump
User prompt
bring the cube and spikes to the middle y axis of the screen
User prompt
center the action
Initial prompt
Geo Dash
===================================================================
--- original.js
+++ change.js
@@ -9,9 +9,9 @@
anchorX: 0.5,
anchorY: 0.5
});
self.speed = 5;
- self.jumpSpeed = -20;
+ self.jumpSpeed = -10;
self.gravity = 1;
self.isJumping = false;
self.update = function () {
if (self.x < 2048 / 2) {
@@ -25,13 +25,13 @@
} else {
// The cube is falling down, apply full gravity
self.jumpSpeed += self.gravity;
}
- if (self.y >= 2732 / 3) {
+ if (self.y >= 2732 / 2) {
// Ground level
- self.y = 2732 / 3;
+ self.y = 2732 / 2;
self.isJumping = false;
- self.jumpSpeed = -10;
+ self.jumpSpeed = -20;
}
}
};
self.jump = function () {
yellow cube with blue eyes. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
black spike. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
blue and black checkerboard patter led lights. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pause button for endless runner game. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.