User prompt
The game end 1 score
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'intersects')' in or related to this line: 'if (bullets[j].intersects(animes[l])) {' Line Number: 154
User prompt
Add the animes in the game
User prompt
Game speed increase 5time
User prompt
Add a space theme in the background on the game
User prompt
Add a sound
User prompt
Add score board
Initial prompt
Ap
===================================================================
--- original.js
+++ change.js
@@ -134,8 +134,16 @@
enemies.splice(k, 1);
// Update score
LK.setScore(LK.getScore() + 1);
scoreTxt.setText(LK.getScore());
+ if (LK.getScore() >= 1) {
+ LK.effects.flashScreen(0x00ff00, 1000);
+ LK.showGameOver();
+ }
+ if (LK.getScore() >= 1) {
+ LK.effects.flashScreen(0x00ff00, 1000);
+ LK.showGameOver();
+ }
break;
}
}
for (var l = animes.length - 1; l >= 0; l--) {