User prompt
Add pillers on top . Ground . In midle
User prompt
Make bird jump haight
User prompt
Make hard
User prompt
Add pillars insted of wall
User prompt
Game over when we touch the top
User prompt
Game over if we toch the wall
User prompt
Do the namber increasing
User prompt
Sloaw the speed of faling of bird
User prompt
Add flapping sound
User prompt
Make nambur incresing
Code edit (1 edits merged)
Please save this source code
User prompt
Add wall
User prompt
Spawn the bird on the topest haight
User prompt
When the game start don t spawn bird on low g
User prompt
Spawn the bird on the top
User prompt
Spawn the bird on more haight
User prompt
When game start and player out then appear game over don t appear game over in start interface
User prompt
Make interface and add start botten in interface
User prompt
Make when the game start the was in the air and make ground someone toche the grond out him
User prompt
Remove pipes
User prompt
Make pipe lenth 100
User prompt
Add sun
User prompt
Change sky colure to blue
User prompt
Make pipe larger and only space for bird an add wals in grond
===================================================================
--- original.js
+++ change.js
@@ -57,8 +57,12 @@
self.x -= 5;
if (self.x < -wallGraphics.width / 2) {
self.destroy();
}
+ if (self.intersects(bird)) {
+ game.isStarted = false;
+ LK.showGameOver();
+ }
};
});
/****
@@ -125,9 +129,9 @@
wall.y = Math.random() * (2732 - 400) + 200;
walls.push(wall);
game.addChild(wall);
}
- for (var i = walls.length - 100; i >= 0; i--) {
+ for (var i = walls.length - 1; i >= 0; i--) {
walls[i].update();
if (walls[i].intersects(bird)) {
game.isStarted = false;
LK.showGameOver();