User prompt
do not make the pipe cone in a sequence . make like that if one pipe come in up than another should come in middle or down
User prompt
make the pipe length long
User prompt
there should not be any gap in vertical pipes
User prompt
connect the vertical pipes
User prompt
join the vertical pipes
User prompt
while i am tapping the bird goes up too less distance
Code edit (1 edits merged)
Please save this source code
Initial prompt
Flappy bird
===================================================================
--- original.js
+++ change.js
@@ -65,13 +65,12 @@
});
scoreTxt.anchor.set(0.5, 0);
LK.gui.top.addChild(scoreTxt);
function spawnPipe() {
- var gap = 250;
var topPipe = new Pipe();
var bottomPipe = new Pipe();
- topPipe.y = Math.random() * (2732 - gap) - gap / 2;
- bottomPipe.y = topPipe.y + gap + topPipe.height;
+ topPipe.y = Math.random() * (2732 - topPipe.height);
+ bottomPipe.y = topPipe.y + topPipe.height;
var pipeX = 2048; // Set the same x-coordinate for both pipes
topPipe.x = pipeX;
bottomPipe.x = pipeX;
pipes.push(game.addChild(topPipe));