User prompt
If flappy touch the ground he will out
User prompt
Make score on the upper side and the score will shows number and the number will increasing by time of gameplay
User prompt
Remove stones
User prompt
Spawn stones in random position
User prompt
Decrease the size of flappy 1.5×
User prompt
Increase the size of flappy 3×
User prompt
Remove trees
User prompt
On the upper side make sky
User prompt
Increase size of trees 2×
User prompt
Trees wikl apear on only base
User prompt
Increase size of trees
User prompt
Increase the number of trees increase the size of trees and trees
User prompt
Make trees everywhere
User prompt
Add some trees in background
User prompt
Make some trees
User prompt
The background of game make grass
Initial prompt
Flappy bird
===================================================================
--- original.js
+++ change.js
@@ -22,8 +22,10 @@
self.y += self.velocity;
if (self.y > 2732 - flappyGraphics.height / 2) {
self.y = 2732 - flappyGraphics.height / 2;
self.velocity = 0;
+ LK.effects.flashScreen(0xff0000, 1000);
+ LK.showGameOver();
}
if (self.y < flappyGraphics.height / 2) {
self.y = flappyGraphics.height / 2;
self.velocity = 0;
@@ -112,5 +114,9 @@
}
}
scoreTxt.setText(Math.floor(LK.ticks / 60));
flappy.update();
+ if (flappy.y >= 2732 - flappy.height / 2) {
+ LK.effects.flashScreen(0xff0000, 1000);
+ LK.showGameOver();
+ }
};
\ No newline at end of file