User prompt
after health end show player3, player and player2 hide create object 'end'
User prompt
Fix Bug: 'ReferenceError: player2 is not defined' in this line: 'return false;' Line Number: 92
User prompt
Fix Bug: 'ReferenceError: player2 is not defined' in this line: 'return false;' Line Number: 114
User prompt
Fix Bug: 'ReferenceError: player2 is not defined' in this line: 'player2.targetX = touchPos.x;' Line Number: 170
User prompt
Fix Bug: 'ReferenceError: player2 is not defined' in this line: 'if (player.visible && apples[i] instanceof Apple && apples[i].isCaught(player) || player2.visible && apples[i] instanceof Apple && apples[i].isCaught(player2) || player3.visible && apples[i] instanceof Apple && apples[i].isCaught(player3)) {' Line Number: 202
User prompt
Fix Bug: 'ReferenceError: player2 is not defined' in this line: 'player2.moveLeft();' Line Number: 191
User prompt
create player3
User prompt
Fix Bug: 'ReferenceError: player3 is not defined' in this line: 'player3.visible = true;' Line Number: 218
User prompt
after health end show player3, player and player2 hide
User prompt
green apples are more likely to be born
User prompt
make the number of green apples three times the number of red apples.
User prompt
double the amount of green apples.
User prompt
double the amount of green apples.
User prompt
when a green apple hits the players, a skull appears in its place for half a second.
User prompt
when players encounter green apples, a skull appears in their place for half a second
User prompt
make the end-of-game special effect golden.
User prompt
turn the end-of-game special effect green.
User prompt
end of game code for running out of health meters
User prompt
end of game after health
User prompt
game over after three hits by green apples.
User prompt
remove one health meter each time you encounter a green apple
User prompt
put 3 health meters in the upper left corner.
User prompt
Fix Bug: 'Uncaught TypeError: healthGraphics.setText is not a function' in this line: 'healthGraphics.setText('Health: ' + self.value);' Line Number: 12
User prompt
put the health counter from 3 to 1 in the upper left corner.
User prompt
put three health in the upper left corner.
===================================================================
--- original.js
+++ change.js
@@ -198,9 +198,9 @@
LK.setScore(LK.getScore() + 1);
// Remove caught apple
apples[i].destroy();
apples.splice(i, 1);
- } else if (player.visible && apples[i] instanceof GreenApple && apples[i].isCaught(player) || player2.visible && apples[i] instanceof GreenApple && apples[i].isCaught(player2) || player3.visible && apples[i] instanceof GreenApple && apples[i].isCaught(player3)) {
+ } else if (player.visible && apples[i] instanceof GreenApple && apples[i].isCaught(player) || player3.visible && apples[i] instanceof GreenApple && apples[i].isCaught(player3)) {
// Decrease health and check for game over
if (healthMeters.length > 0) {
var lastHealthMeter = healthMeters.pop();
lastHealthMeter.destroy();
grass
the fields of Britain, cartoon style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
red apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
eureka moment, cartoon style, light, no people. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
heart. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
stars flying on an ellipse, cartoon style, side view , no people. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white "=" on a green apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white "F" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
the "G" sign on the red apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white " (M" on a red apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white sign with a small "m" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
white " /" on a green apple. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a white "R" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
green
a white " 2" on a red apple.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.