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
@@ -67,9 +67,11 @@
LK.gui.top.addChild(scoreTxt);
function spawnPipe() {
var topPipe = new Pipe();
var bottomPipe = new Pipe();
- topPipe.y = Math.random() * (2732 - topPipe.height);
+ var pipeYPositions = [0, 2732 / 3, 2 * 2732 / 3]; // Top, middle, bottom positions
+ var randomIndex = Math.floor(Math.random() * pipeYPositions.length);
+ topPipe.y = pipeYPositions[randomIndex];
bottomPipe.y = topPipe.y + topPipe.height - 10; // Adjusted to remove the gap
var pipeX = 2048; // Set the same x-coordinate for both pipes
topPipe.x = pipeX;
bottomPipe.x = pipeX;