Code edit (4 edits merged)
Please save this source code
User prompt
add fuction smooth take-off of a bird
Code edit (2 edits merged)
Please save this source code
User prompt
if the bird rose above the screen, then death
User prompt
if the bird dropped below the screen, then death
User prompt
add function the bird falls down, but when you click on the screen it flies up 400 px
User prompt
delete препядствия
User prompt
add fuction fly obstacles from right to left
User prompt
fix bug fly obstacles
Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: obstacleGraphics is not defined' in or related to this line: 'obstacle.x = 2048 + obstacleGraphics.width; // Start just right of the screen' Line Number: 62
User prompt
obstacles fly horizontally in screen
User prompt
obstacles fly horizontally
User prompt
add function, if touch in screen птица It went up and down smoothly
Code edit (1 edits merged)
Please save this source code
User prompt
Птица dont move
Initial prompt
летающая птица
===================================================================
--- original.js
+++ change.js
@@ -40,10 +40,10 @@
bird.flyUp = true;
});
LK.on('tick', function () {
bird.move();
- // Check if bird has fallen off the screen
- if (bird.y > 2732) {
+ // Check if bird has fallen off the screen or risen above the screen
+ if (bird.y > 2732 || bird.y < 0) {
// Flash screen red for 1 second (1000ms) to show game over.
LK.effects.flashScreen(0xff0000, 1000);
// Show game over. The game will be automatically paused while game over is showing.
LK.showGameOver();
голубое небо, горизонт и зеленое поле. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Мультяшный квадратный сюрикен. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
button leaderboards. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.