User prompt
Rotate enemy bullets 180 degrees
User prompt
Remove the code that removes enemies if they exit the screen at the bottom as it's not needed
User prompt
Make sure the location where enemies stop flying down the screen is such that the enemy is always fully visible
User prompt
Decrease the alpha of the background stars
User prompt
Make sure the enemy health bar uses the enemy total health when inited
User prompt
Update the enemy class to accept currentWave as an argument during creation. Then use the current wave information to set total health of the enemy
User prompt
Parse the wave information into the enemy constructor
User prompt
Always spawn 5 enemies
User prompt
Increase the alpha of the background stars
User prompt
Increase the alpha of the background stars
User prompt
Make the background stars move slower
User prompt
When the y value of the background makes the top of the background edge visible on the screen reset the y. Use the hight of the image to determine when this is.
User prompt
set background alpha to .4
User prompt
Add .5 to background y every tick
User prompt
Set the anchor point on the background image to .5,1
User prompt
Fix Bug: 'undefined' in this line: 'heroGraphics.tint = 0xffffff;' Line Number: 102
User prompt
Make background have 20% opacity
User prompt
Make the background element centered on the screen
User prompt
Add background element behind the stars in the games class
User prompt
In the update game objects function, destroy enemy bulles if they exit the screen left or right
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'powerup.intersects')' in this line: 'if (powerup.intersects(hero)) {' Line Number: 306
User prompt
When collecting a powerup, remove all other powerups, such that only one powerup can be collected per round
User prompt
When spawning powerups, spawn 3 random powerups spaced equally on the screen.
User prompt
Set initial hero bullet acceleration to .2
User prompt
Pass along the hero acceleration variable to hero bullet move and use that instead of it's own acceleration variable
===================================================================
--- original.js
+++ change.js
@@ -54,8 +54,9 @@
});
var EnemyBullet = Container.expand(function () {
var self = Container.call(this);
var bulletGraphics = XS.getAsset('enemyBullet', 'Enemy Bullet Graphics', 0.5, 0.5);
+ bulletGraphics.rotation = Math.PI;
self.addChild(bulletGraphics);
self.speed = 5;
self.move = function () {
self.x += self.speedX;
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.