User prompt
Upper case the F in flap and float in the tutorial text
User prompt
Make gravity when mouse is down be /3
User prompt
Don't set scale on that.
User prompt
Please increment the particles.
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 fix the bug: 'Script error.' in or related to this line: 'wefwef.wefwefwe.wef;' Line Number: 87
User prompt
add javadocs to all classes
User prompt
Migrate to the latest version of LK
User prompt
Update the game, to use the new event format where possible
User prompt
Add sound when bird flaps
User prompt
add sound when bird bounces
User prompt
add game over jingle before calling LK.gameOver
===================================================================
--- original.js
+++ change.js
@@ -149,16 +149,16 @@
var rightObstacleSpawnTime = Math.floor(Math.random() * obstacleSpawnRandomness) + obstacleSpawnRandomness;
bird.x = 1024;
bird.y = 1366;
game.isMouseDown = false;
-game.on('down', function (x, y, obj) {
+game.down = function (x, y, obj) {
bird.flap();
game.isMouseDown = true;
-});
-game.on('up', function (x, y, obj) {
+};
+game.up = function (x, y, obj) {
game.isMouseDown = false;
-});
-LK.on('tick', function () {
+};
+game.update = function () {
bird._update_migrated();
if (game.score > 2) {
tutorialText.y += 5;
tutorialTextWhite.y += 5;
@@ -209,5 +209,5 @@
if (bird.y < 0 || bird.y > 2732) {
LK.setScore(game.score);
LK.showGameOver();
}
-});
\ No newline at end of file
+};
\ No newline at end of file