User prompt
add timestamp to explosion asset on creation
User prompt
destroy explosion after 0.1 seconds
User prompt
destroy explosion asset after 1 second
User prompt
spawn an explosion asset when an enemy is destroyed
User prompt
change spawn location of background tiles to 500 pixels further right
User prompt
change spawn location of background tiles to 500 pixels further right
User prompt
move the background tiles to spawn on the right of the screen
User prompt
centre the background tiles on the screen
User prompt
respawn the background layers when they are removed from the bottom of the screen
User prompt
create a parallax effect scrolling background with three layers
User prompt
create collision between hero bullet and enemy bullet. Destroy both on collision.
User prompt
destroy any health pickups after they have been on screen for 5 seconds
User prompt
increase speed of hero bullets, enemies and enemy bullets by 20%
User prompt
create a 5% chance to spawn a health pickup when an enemy is destroyed
User prompt
create a health pickup asset that restores 10 health
User prompt
add collision between the hero and enemy
User prompt
set damage on collision with enemy to 10
User prompt
set damage on collision between enemy and hero to 15
User prompt
Add collision between enemy and hero
User prompt
Hide the cursor when the cursor is in the playing area
User prompt
increase enemy and enemy bullet speed by 5% every 30 seconds
User prompt
prevent enemies from spawning off the sides of the screen
User prompt
hide score at start of game until it is no longer 0
User prompt
hide score if score is 0
User prompt
move the score display to be aligned to the right side of the screen
===================================================================
--- original.js
+++ change.js
@@ -1,8 +1,9 @@
var Explosion = Container.expand(function () {
var self = Container.call(this);
+ self.timestamp = Date.now();
var explosionGraphics = self.createAsset('explosion', 'Explosion effect', .5, .5);
- self.animationDuration = 6;
+ self.animationDuration = 30;
self.tickCount = 0;
self.on('tick', function () {
self.tickCount++;
if (self.tickCount > self.animationDuration) {
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.