User prompt
Make enemy shoot
User prompt
Make enemy shoot once
User prompt
Add space background
User prompt
Make enemy bullets slower than players bullets
User prompt
Make bullets cancel each other
User prompt
Make ufo to shoot in random order
User prompt
Enemy can't shoot
User prompt
Create a new level when player scored 100 points
User prompt
End the game if when maximum of three enemies cross player
User prompt
Fix the bug
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'health')' in or related to this line: 'jet.health = 3;' Line Number: 53
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'health')' in or related to this line: 'self.health = 3;' Line Number: 169
User prompt
Make player get damge from enemy bullets
User prompt
Make player get damge
User prompt
Make the enemy shoot the player
User prompt
Make the jet move left and right
Initial prompt
Space shooter
===================================================================
--- original.js
+++ change.js
@@ -68,8 +68,11 @@
self.destroy();
ufos.splice(ufos.indexOf(self), 1);
enemiesCrossed++;
}
+ if (Math.random() < 0.01) {
+ self.shoot();
+ }
};
self.shoot = function () {
var bullet = new EnemyBullet();
bullet.x = self.x;
Fighter jet. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Ufo with green alien driving it. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Space with stars with earth background. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Red round ball. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Green round ball. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Pixel smoke. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Red Heart with plus symbol at centre. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.