User prompt
Remove bold in score
User prompt
Fix score in bold letters
User prompt
My score in bold letters
User prompt
Where is rock fix the problem
User prompt
Remove little mango photo
User prompt
In top op game in right side text "don't miss 5" and small mango photo
User prompt
Rock coming in every 10 second
User prompt
Rock is not coming
User prompt
Rock not coming please fix
User prompt
Create a banana come in every 140 second and plus my score 100
User prompt
Fix score
User prompt
Create live score board i see my score live in top bottom.
User prompt
Remove cherry and assets
User prompt
Fix cherry problem why my player don't eat cherry.
User prompt
Why money can't eat cherry fix the problem
User prompt
Monkey eat cherry to
User prompt
Fix cherry
User prompt
Fix cherry
User prompt
Fix the problem only
User prompt
Make 1 cherry time in 50 second and plus my score 60.
User prompt
Rock come 10 or 20 seconds
User prompt
And make 1 rock come randomly time and i touch game over
User prompt
Only 2 apple come in 30 seconds
User prompt
Create 1 apple to plus my score 20
User prompt
Create a 3D background image
===================================================================
--- original.js
+++ change.js
@@ -152,52 +152,49 @@
}
}
// Initialize the array of cherries
var cherries = [];
- // Implement the game logic
- game.update = function () {
- // Generate a new cherry every 3000 frames (50 seconds)
- if (LK.ticks % 3000 == 0) {
- var newCherry = new Cherry();
- newCherry.x = Math.random() * 2048; // Random x position across the screen width
- newCherry.y = 0; // Start from the top of the screen
- cherries.push(newCherry);
- game.addChild(newCherry);
+ // Generate a new cherry every 3000 frames (50 seconds)
+ if (LK.ticks % 3000 == 0) {
+ var newCherry = new Cherry();
+ newCherry.x = Math.random() * 2048; // Random x position across the screen width
+ newCherry.y = 0; // Start from the top of the screen
+ cherries.push(newCherry);
+ game.addChild(newCherry);
+ }
+ // Update the cherries
+ for (var i = cherries.length - 1; i >= 0; i--) {
+ var cherry = cherries[i];
+ // Move the cherry downwards
+ cherry.y += 5;
+ // Check if the cherry has been caught by the monkey
+ if (cherry.intersects(monkey)) {
+ cherries.splice(i, 1);
+ cherry.destroy();
+ // Increase the score by 60
+ LK.setScore(LK.getScore() + 60);
}
- // Update the cherries
- for (var i = cherries.length - 1; i >= 0; i--) {
- var cherry = cherries[i];
- // Move the cherry downwards
- cherry.y += 5;
- // Check if the cherry has been caught by the monkey
- if (cherry.intersects(monkey)) {
- cherries.splice(i, 1);
- cherry.destroy();
- // Increase the score by 60
- LK.setScore(LK.getScore() + 60);
- }
- // Check if the cherry has fallen off the screen
- else if (cherry.y > 2732) {
- cherries.splice(i, 1);
- cherry.destroy();
- }
+ // Check if the cherry has fallen off the screen
+ else if (cherry.y > 2732) {
+ cherries.splice(i, 1);
+ cherry.destroy();
}
- // Update the rocks
- for (var i = rocks.length - 1; i >= 0; i--) {
- var rock = rocks[i];
- // Move the rock downwards
- rock.y += 5;
- // Check if the rock has been touched by the monkey
- if (rock.intersects(monkey)) {
- rocks.splice(i, 1);
- rock.destroy();
- // End the game
- LK.showGameOver();
- }
- // Check if the rock has fallen off the screen
- else if (rock.y > 2732) {
- rocks.splice(i, 1);
- rock.destroy();
- }
+ }
+ // Update the rocks
+ for (var i = rocks.length - 1; i >= 0; i--) {
+ var rock = rocks[i];
+ // Move the rock downwards
+ rock.y += 5;
+ // Check if the rock has been touched by the monkey
+ if (rock.intersects(monkey)) {
+ rocks.splice(i, 1);
+ rock.destroy();
+ // End the game
+ LK.showGameOver();
}
- };
+ // Check if the rock has fallen off the screen
+ else if (rock.y > 2732) {
+ rocks.splice(i, 1);
+ rock.destroy();
+ }
+ }
};
\ No newline at end of file