User prompt
Fix Bug: 'ReferenceError: Can't find variable: hero' in this line: 'self.speed += hero.acceleration;' Line Number: 51
User prompt
Add powerup that makes missiles accelerate 10% faster
User prompt
Prevent the 'powerup' powerup from spawning if rate of fire is already less or equal to 5
User prompt
Update powerup spawn function such that it does not spawn extra bullet powerup if player already have 5 or more bullets per shot
User prompt
Bullets should be spaced by 100 rather than 50
User prompt
Make multi bullets spawn as a half circle in front of the ship
User prompt
Increase spacing of multi bullets by 5x
User prompt
Extra bullet powerup should not increase fire rate, but instead make the ship fire multiple bullets at the same time
User prompt
Change fire rate text to +10% Rate of Fire
User prompt
Delete the type specific powerup types
User prompt
Replace the powerup spawn logic, to use the single powerup class with type
User prompt
Rewrite the powerup collection for loop to use powerup type rather than instanceof
User prompt
Set type on all the powerup classes
User prompt
expose the type on powerup
User prompt
On the powerup class, accept a type argument on creation that supports all the types of powerups we currently have in the game
User prompt
Actually spawn extra bullet powerups
User prompt
Add extra bullet powerup, rewrite the for loop that collects powerups to add this
User prompt
Make the powerup text be 20% smaller
User prompt
Remove the powerup: text from the fire rate powerup text
User prompt
The text for the health powerup should be "Health restored". For speed it should be "+10% Speed" for Shield it should just be "Shield"
User prompt
The powerup text for fire rate should be "+10% Fire Rate"
User prompt
Add a label to the game below the score text, which shows which powerup we just picked up for 3 secs
User prompt
Make shield effect have 50% opacity
User prompt
Make the shield effect be attached at 1 rather than 0
User prompt
Make the shield effect have 30% opacity
===================================================================
--- original.js
+++ change.js
@@ -47,9 +47,9 @@
self.addChild(bulletGraphics);
self.speed = 0;
self.acceleration = 0.2;
self.move = function () {
- self.speed += hero.acceleration;
+ self.speed += self.acceleration;
self.y -= self.speed;
};
});
var EnemyBullet = Container.expand(function () {
Round powerup. Shield icon Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Extra missile powerup circle. Missile and plus sign. Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Single space torpedo flying upwards Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Background galaxy nebulas and galaxies Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast. --ar 1:10
Round powerup. Green health icon Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Blue glowing powerup circle with s in center Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Round powerup. Lightning icon pointing up. Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Stylish hero spaceship facing upwards, with a single cannon in the center. Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
single alien enemy spaceship facing down, looking like space alien adopted to living in space. Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Single enemy slime bullet, seen from above facing upwards. Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Round powerup icon with bullseye Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.
Clean plasma bubble Single Game Texture. In-Game asset. 2d. Pixelart. White background. Blank background. Low detail. High contrast.