User prompt
when apple touches player make the game end
User prompt
spawn less apples
User prompt
change the time from 60 seconds to 10 seconds
User prompt
add a timer on top which shows when the 60 seconds are done
User prompt
Please fix the bug: 'TypeError: LK.isGameOver is not a function. (In 'LK.isGameOver()', 'LK.isGameOver' is undefined)' in or related to this line: 'if (LK.isGameOver()) {' Line Number: 84
User prompt
only allow the game to run for 60 seconds
User prompt
every time you shoot a apple it updates your score
User prompt
make it so you can shoot the apples
User prompt
add apples that spawn as enemies from the top of the screen
User prompt
add vertical movement as well
User prompt
remove enemies
Initial prompt
Apple shooter
===================================================================
--- original.js
+++ change.js
@@ -106,6 +106,12 @@
LK.setScore(LK.getScore() + 1);
break;
}
}
+ // Check for collision with player
+ if (apples[i].intersects(player)) {
+ // Game over
+ LK.showGameOver();
+ break;
+ }
}
});
\ No newline at end of file