User prompt
wait one second after playing gameover sound before showing game over
Code edit (3 edits merged)
Please save this source code
User prompt
make sure gameover sound is only played once
User prompt
stop background music on game over
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot set properties of undefined (setting 'update')' in or related to this line: 'leftPlayer.update = function () {' Line Number: 1491
Code edit (1 edits merged)
Please save this source code
User prompt
when player is split, disable swipe down until player merges again
User prompt
add a flag to track if player is split. if player is split do not allow player to try to split again
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot set properties of null (setting 'update')' in or related to this line: 'leftPlayer.update = function () {' Line Number: 1491
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'TypeError: Cannot set properties of undefined (setting 'update')' in or related to this line: 'leftPlayer.update = function () {' Line Number: 1491
User prompt
after game over flash screen game screen should be just pitch black
User prompt
make grey backround darker
User prompt
make grey background darker
User prompt
after flash on game over add a new black asset that covers the whole screen
User prompt
game.addChild(gameOverCover) should have the highest position on the z axis
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Error: [object Object]addChildAt: The index undefined supplied is out of bounds 61' in or related to this line: 'game.addChildAt(gameOverCover);' Line Number: 1441
User prompt
destroy score and scorebackground on game over
User prompt
destroy milesbackground and miles on game over
Code edit (3 edits merged)
Please save this source code
User prompt
jump duration should be reduced by 5% every 10 seconds
User prompt
reduce split time by 5% every 10 seconds
===================================================================
--- original.js
+++ change.js
@@ -1383,12 +1383,10 @@
} else {
finalScoreTxt.setText('Final Score: ' + finalScore);
finalScoreTxt.visible = true;
}
- if (!gameoverSoundPlayed) {
- LK.getSound('gameover').play(); // Play gameover sound
- gameoverSoundPlayed = true;
- }
+ LK.getSound('gameover').play(); // Play gameover sound
+ LK.stopMusic(); // Stop background music
LK.setTimeout(function () {
LK.showGameOver(); // Calling this will destroy the 'Game' and reset entire game state.
}, 100); // Wait for 1 second (1000ms) before showing game over screen
}
@@ -1762,9 +1760,5 @@
milesTxt.y = scoreTxt.y - 120;
milesTxt.visible = false; // Hide miles on main menu
milesBackground.visible = false; // Hide miles background on main menu
LK.gui.top.addChild(milesBackground);
-LK.gui.top.addChild(milesTxt);
-var gameoverSoundPlayed = false;
-LK.on('reset', function () {
- gameoverSoundPlayed = false;
-});
\ No newline at end of file
+LK.gui.top.addChild(milesTxt);
\ No newline at end of file
cartoon white circle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon light blue circle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
cartoon white square. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
black rectangle