User prompt
fix the player collision with the top edge of the screen. right now if the player's top edge hits the screen the game doesnt go to game over as it should
User prompt
fix the player collision with the top edge of the screen. right now if the player's top edge hits the screen the game doesnt go to game over as it should
User prompt
fix the player collision with the top edge of the screen. right now if the player's top edge hits the screen the game doesnt go to game over as it should
Code edit (3 edits merged)
Please save this source code
User prompt
move the player's starting position 100 pixels lower
User prompt
disable jumping while the player is in mid air. only allow jumping when the player is on the ground
Code edit (3 edits merged)
Please save this source code
User prompt
as soon as the top edge of the player touches the top part of the screen go to game over
User prompt
when ANY part of the player touches the top edge of the screen go to game over. right now this only triggers when the center of the player touches it, which is a bug
Code edit (3 edits merged)
Please save this source code
User prompt
holding the finger for just a fraction of a second should make the player jump a bit higher. there should be a minimum distance the player can jump
Code edit (1 edits merged)
Please save this source code
User prompt
the finger hold on the screen is too sensitive, I should be able to keep the finger held on the screen for much longer before the player jumps so high
User prompt
the gamae should go to game over when any part of the player touches the top edge, not just it's center
User prompt
if the player touches the top edge of the screen go to game over
Code edit (1 edits merged)
Please save this source code
User prompt
the hold duration should be correlated to the jump's height. the longer the finger is held, the higher the character should jump
User prompt
the player should not jump while the finger is pressed, instead it should only jump after the tap is released. So holding the finger on the screen should charge up the jump, and based on this duration, after releasing the finger, the jump isexecuted
Initial prompt
Hold to jump higher - no enemy
===================================================================
--- original.js
+++ change.js
@@ -60,8 +60,8 @@
player.endJump();
};
game.update = function () {
player.update();
- if (player.y <= 0) {
+ if (player.y - player.height / 2 <= 0) {
LK.showGameOver();
}
};
\ No newline at end of file
pixelated 8-bit cute sitting frog seen from the front. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixelated 8-bit cute jumping frog seen from the front. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
background of a pond in the middle of the nature. pixelated 8-bit. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.