User prompt
Bug: When the settings button is clicked in the start screen and then the start game button is clicked, the 60 second countdown and score do not show up.
User prompt
Add a home button. This button when clicked on it, brings you back to the start screen of the game. Use the reset game function to end the game when the button is clicked
User prompt
Remove the 3 second countdown timer from the startgame function
User prompt
Create a new function called startGame . This function will start the game after the startgame button is clicked
User prompt
Create a new function called reset game. This function will reset the timer, score, and destroy all falling items on screen. It will also stop the spawning of items.
User prompt
Fix Bug: 'TypeError: self.pauseGame is not a function' in this line: 'self.pauseGame();' Line Number: 12
User prompt
Do not use the pause feature when the home button is clicked.
User prompt
In the game, add a new home button below the settings button. When this home button is clicked, it brings you back to the starting screen of the game. Make sure that it uses the pause feature in it's own way.
User prompt
The pause feature is broken.
User prompt
Fix bugs
User prompt
When the home button is clicked, do a right to left animation to bring the start screen back into place. Do not destroy the start screen after the start button is clicked the first time. Hide all elements of it after the animation happens.
User prompt
Fix Bug: 'ReferenceError: startButtonAnimation is not defined' in this line: 'if (startButtonAnimation) {' Line Number: 843
User prompt
The goal of the home button is to bring every single thing in the start screen gui back up.
User prompt
When the home button is clicked, it needs to bring the start gui back up.
User prompt
In the game menu, add a new home button below the settings button. When this home button is clicked, it brings you back to the starting screen of the game.
User prompt
Add a start menu gui closing animation
User prompt
Remove high score
User prompt
When the timer hits 0 seconds, make the game end
User prompt
Make sure the game ends right after the highscore is saved at 0 seconds
User prompt
Save the high score when the 60 second countdown timer hits 0
User prompt
Make sure the high score is saved even if the player hits the lose condition
User prompt
Make sure the high score saves before the "Game Over | Play again" prompt comes up
User prompt
Make sure the player's high score is saved when the player dies
User prompt
The retrieval of the high score might not be correctly implemented. The game should be calling `LK.localStorage.getItem('highScore')` to get the saved high score when the game initializes. If this step is not correctly retrieving the stored value, the high score will not appear to be saved.
User prompt
The high score might not be properly saved to `LK.localStorage`. The code should be calling `LK.localStorage.setItem('highScore', newHighScore)` whenever a new high score is achieved, but if this step is missing or not functioning correctly, the high score won't persist.
===================================================================
--- original.js
+++ change.js
@@ -29,19 +29,9 @@
if (self.duration > 0) {
self.duration--;
self.displayText.setText(self.duration.toString());
} else if (self.duration === 0) {
- var finalScore = LK.getScore();
- var highScore = typeof LK.localStorage !== 'undefined' ? parseInt(LK.localStorage.getItem('highScore')) || 0 : 0;
- if (finalScore > highScore) {
- LK.localStorage.setItem('highScore', finalScore.toString());
- }
- var finalScore = LK.getScore();
- var highScore = typeof LK.localStorage !== 'undefined' ? parseInt(LK.localStorage.getItem('highScore')) || 0 : 0;
- if (finalScore > highScore) {
- LK.localStorage.setItem('highScore', finalScore.toString());
- }
- self.onComplete();
+ LK.showGameOver();
}
}
};
});
Coffee droplet.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. Shadows at the bottom.
Have the coffee cup open at the top
High end Coffee Shop. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. Shadows at the bottom.
Coffee trail going vertical. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. Shadows at the bottom.
Coffee splashing effect. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No Shadows.
Black circle with a bit of transparency.
Coffee Bean With Nothing Else. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Clock, Nothing else in the image.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A white particle trail, vertical. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Remove the plus from this image
Red X. Nothing else.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
White rectangle, curved corners. Small black border. Simple, modern. Aspect ratio 1550 * 2500.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Include only the spike.
Remove the bottom part that is not coming from the center explosion
Rectangular coffee themed start button. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Remove the random stuff below the question mark
Coffee themed button which has the text "gamemode". Make the aspect ratio of this button 5:1. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.