User prompt
when you get to -500 you lose the game
User prompt
Add a weapon that is a bomb. When you hit 5 enemies in a row a bomb goes off and clears the board
User prompt
When an enemy crosses the bottom threshold that is minus 5 points. Once I reach 150 points I win the game.
User prompt
Speed robotDogs up and send them in zigzags, also make them worth two points
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'intersects')' in or related to this line: 'if (bullets[k].intersects(robotDogs[n])) {' Line Number: 141
User prompt
Add Robot dogs
Initial prompt
CybWar
===================================================================
--- original.js
+++ change.js
@@ -110,16 +110,23 @@
enemies[j].update();
if (enemies[j].y > 2732 + 50) {
enemies[j].destroy();
enemies.splice(j, 1);
+ LK.setScore(LK.getScore() - 5);
+ scoreTxt.setText(LK.getScore());
+ if (LK.getScore() >= 150) {
+ LK.showGameOver();
+ }
}
}
// Update robotDogs
for (var m = robotDogs.length - 1; m >= 0; m--) {
robotDogs[m].update();
if (robotDogs[m].y > 2732 + 50) {
robotDogs[m].destroy();
robotDogs.splice(m, 1);
+ LK.setScore(LK.getScore() - 5);
+ scoreTxt.setText(LK.getScore());
}
}
// Check for collisions
for (var k = bullets.length - 1; k >= 0; k--) {
Large Bullet. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Humanoid robots. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Badass marine with a green muscle T-shirt and a red bandana and a big cigar hanging from his mouth. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Rabid Robot Dog. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.