User prompt
only destroy background layers when they are 1000 pixels off screen
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'addChild')' in this line: 'LK.gui.bottomCenter.addChild(self.healthBar);' Line Number: 65
User prompt
move health bar to bottom centre of the screen
User prompt
change score counter to count up by 10 instead of just adding 1000 each time
User prompt
change the explosion destruction interval to 10 ticks
User prompt
every 5 ticks, check for explosion assets and destroy any that remain
User prompt
after creating an explosion, destroy it again after 0.1 seconds
User prompt
create an explosion asset when an enemy is destroyed
User prompt
wait 0.1 seconds and then despawn the explosion
User prompt
every 0.1 seconds check for explosion assets, and destroy any that remain
User prompt
on tick, check for explosion assets and destroy any that remain
User prompt
after 0.1 seconds, destroy the explosion asset
User prompt
when explosion reaches 0.1 seconds, destroy it and remove it from the game
User prompt
after 0.1 seconds, destroy explosion
User prompt
remove explosion after 0.1 second duration
===================================================================
--- original.js
+++ change.js
Create a plain red health bar Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Create a plain empty health bar Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Create a top down view of a single Earth-like planet Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A background image of some stars in space Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A background image of asteroids in space Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A realistic looking explosion, viewed from above. Bright coloured fire Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a double missile pointing vertically, with fire coming out of the rear Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A health pickup icon Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A cool looking spaceship viewed from above Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A round energy based projectile. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.