User prompt
Fix Bug: 'Timeout.tick error: undefined is not an object (evaluating 'self.enemyCounter.setText')' in this line: 'self.enemyCounter.setText(self.enemies.length.toString());' Line Number: 306
User prompt
remove the enemy counter top right of the screen
User prompt
fix bug in the bomb enemy destruction logic
User prompt
change the bomb logic to only destroy half of the enemies
User prompt
change the bomb logic so it kills 75% of enemies, the ones closest to the player when the bomb is triggered
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'enemy.destroy')' in this line: 'enemy.destroy();' Line Number: 179
User prompt
change the bomb logic so it only destroys the smallest 75% of the enemies
User prompt
remove the 'spawn pause' system
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.bombPickups.push')' in this line: 'self.bombPickups.push(bombPickup);' Line Number: 165
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.bombPickups.push')' in this line: 'self.bombPickups.push(bombPickup);' Line Number: 165
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.bombPickups.push')' in this line: 'self.bombPickups.push(bombPickup);' Line Number: 165
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.bombPickups.push')' in this line: 'self.bombPickups.push(bombPickup);' Line Number: 165
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self.bombPickups.push')' in this line: 'self.bombPickups.push(bombPickup);' Line Number: 165
User prompt
fix bug where bomb pickups aren't appearing
User prompt
fix bug where bomb pickups aren't appearing
User prompt
only start the timer for the next bomb pickup if there is no bomb pickup on screen
User prompt
When the enemyspawncounter reaches 200, and the pause in spawning is complete, reset it to 0
User prompt
make bomb appear every 30 seconds
User prompt
create a new pickup: bomb. This pickup kills all enemies on the screen when touched by the player. The bomb appears every 20 seconds
User prompt
increase size of health pickup to 130%
User prompt
double the size of the health pickup
User prompt
ad a parallax 3d star field effect with white, round stars
User prompt
move the player health bar up a tiny amount
User prompt
move the player health bar down a bit
User prompt
make the player health bar half the vertical width
===================================================================
--- original.js
+++ change.js
@@ -175,9 +175,11 @@
var enemyIndex = Math.floor(Math.random() * self.enemies.length);
var enemy = self.enemies.splice(enemyIndex, 1)[0];
enemy.destroy();
}
- self.enemyCounter.setText(self.enemies.length.toString());
+ if (self.enemyCounter) {
+ self.enemyCounter.setText(self.enemies.length.toString());
+ }
pickup.destroy();
bombPickups.splice(i, 1);
}
}
amoeba Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Green equilateral triangle, fills the entire picture space in width and height Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
square box viewed from above. White with a large Red Cross Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Purple bomb Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
space image stylised gas clouds, black and white image, low contrast