User prompt
The hero bullets do not seem to accelerate over time. They should get faster and faster the longer they have been on screen.
User prompt
10x how quickly the hero bullets accelerate.
User prompt
Make the hero bullets accelerate aggressively after being fired.
User prompt
Make the Hero Bullets Accelerate!
User prompt
Make the hero bullets move 1 tenth as fast.
User prompt
Update the background star opacity code such that the maximum opacity a star can have is 50%.
User prompt
half the background style opacity.
User prompt
Please add a sound effect when a bullet hits an enemy or a boss.
User prompt
Please spawn a series of enemy bullets that radiate out in a circle when the boss dies.
User prompt
The bus does no longer seem to die when its health point reaches zero. Please fix this.
User prompt
Please flash the boss sprite red when hit by a hero bullet.
User prompt
Please use the flash method to flash the spaceship asset red when hit by an enemy bullet.
User prompt
Please make the hero spaceship flash red for 200 milliseconds when hit by an enemy bullet.
User prompt
Please use blend mode 1 for the engine particles.
User prompt
Currently, the engine exhaust particles are spawned such that they render on top of the spaceship. Please make sure that they are added to the display tree in a fashion where they spawn below the spaceship.
User prompt
Offset the engine particle spawn position by 50 pixel in a random direction.
User prompt
Make engine particles spade out the alpha quicker.
User prompt
Make the engine particles stay on screen for three times as long.
User prompt
The fade-out of the engine particles on the spaceship should be such that they are fully faded out before they are removed.
User prompt
Use a total of 20 individual particles to flow out behind the spaceship. Have them spawn every 5 ticks.
User prompt
So the particles that are flying out behind the spaceship should work such that they are spawned individually, not all at the same time. They should sort of flow out towards the back, with a new one being spawned every four or five ticks.
User prompt
There seems to be only one particle flowing out behind the spaceship. There should be like 10 particles that are reused and overlapped.
User prompt
use a different asset for the particles that spawn behind the spaceship.
User prompt
Please add a particle trail that spawns behind the hero spaceship's engines. They should move down the screen fairly quickly and fade out and be reused.
User prompt
Make power up assets move down the screen at 30% the speed of the current speed.
===================================================================
--- original.js
+++ change.js
@@ -156,13 +156,11 @@
self.speed = 10;
self.alpha = 1;
self.update = function () {
self.y += self.speed;
- self.alpha -= 0.05;
+ self.alpha -= 0.0167;
if (self.alpha <= 0) {
- self.destroy();
- particles.splice(particles.indexOf(self), 1);
- } else {
+ self.alpha = 1;
self.y = hero.y + hero.height / 2;
self.x = hero.x;
}
};