User prompt
add game over jingle before calling LK.gameOver
User prompt
add sound when bird bounces
User prompt
Add sound when bird flaps
User prompt
Update the game, to use the new event format where possible
User prompt
Migrate to the latest version of LK
User prompt
add javadocs to all classes
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'wefwef.wefwefwe.wef;' Line Number: 87
Code edit (1 edits merged)
Please save this source code
User prompt
Okay, please fix that.
Code edit (1 edits merged)
Please save this source code
User prompt
Please increment the particles.
User prompt
Don't set scale on that.
User prompt
Make gravity when mouse is down be /3
User prompt
Upper case the F in flap and float in the tutorial text
User prompt
Update tutorial texts to be Hold to float, rather than Hold to glide
Code edit (5 edits merged)
Please save this source code
User prompt
Move tutorial texts off screen at half the speed
User prompt
In tick, increase the y of tutorial texts to move them off screen, if the bird has bounced more than two times
User prompt
Move up both tutorial texts by 50px
User prompt
set tutorialTextWhite.y to -12
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -106,8 +106,9 @@
obstacles[i]._move_migrated();
var dist = Math.sqrt(Math.pow(bird.x - obstacles[i].x, 2) + Math.pow(bird.y - obstacles[i].y, 2));
if (dist < 280) {
LK.setScore(game.score);
+ LK.getSound('gameOverJingle').play();
LK.showGameOver();
}
}
};
@@ -209,7 +210,8 @@
game.checkObstacleCollision(leftObstacles);
game.checkObstacleCollision(rightObstacles);
if (bird.y < 0 || bird.y > 2732) {
LK.setScore(game.score);
+ LK.getSound('gameOverJingle').play();
LK.showGameOver();
}
};
\ No newline at end of file