User prompt
Fix Bug: 'ReferenceError: missileSpeedModifier is not defined' in this line: 'self.y += self.speed * missileSpeedModifier;' Line Number: 21
User prompt
Increase the speed of missiles by a half percent everytime a missile is destroyed
User prompt
Fix Bug: 'Uncaught ReferenceError: cityGraphics is not defined' in this line: 'city.y = 2732 - cityGraphics.height / 2;' Line Number: 62
User prompt
lower the position of the city, so the bottom of the image is at the bottom of the screen.
User prompt
add one point when a missile is deleted.
User prompt
Create a scoreboard at the top of the screen
User prompt
move the sun in the background slowly move across the top like a sun moved in real life
User prompt
Fix Bug: 'Uncaught ReferenceError: cityGraphics is not defined' in this line: 'city.y = 2732 - cityGraphics.height;' Line Number: 44
User prompt
make the city sit at the bottom of the screen.
User prompt
remove the id gradient
User prompt
move the sun in the background slowly move across the top like a sun moved in real life
User prompt
Fix Bug: 'Uncaught TypeError: Graphics is not a constructor' in this line: 'var gradient = new Graphics();' Line Number: 23
User prompt
Change the background to be a skyline-like gradient
User prompt
add a background so its not just a black screen.
User prompt
Make the missiles always aim towards the bottom of the screen, regardless of the direction they fly in from.
User prompt
Allow the missiles to behave how a missile would, with turning and coming from different parts of the top of the screen.
User prompt
Make the quantity of missile start slow. As missiles are destroyed, increase the quantity of incoming missiles.
User prompt
When defenseMissile collides with missile, make the both defensMissile and missile delete.
Initial prompt
Urban Air Defense
===================================================================
--- original.js
+++ change.js
@@ -13,13 +13,14 @@
var Missile = Container.expand(function () {
var self = Container.call(this);
var missileGraphics = self.createAsset('missile', 'Missile Graphics', .5, .5);
self.speed = 5;
+ self.missileSpeedModifier = 1.0;
self.setSpeedModifier = function (modifier) {
- self.speed *= modifier;
+ self.missileSpeedModifier = modifier;
};
self.move = function () {
- self.y += self.speed * missileSpeedModifier;
+ self.y += self.speed * self.missileSpeedModifier;
};
});
var City = Container.expand(function () {
var self = Container.call(this);
An 8-bit city skyline with towers. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
an 8-bit missile pointing downward. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
an 8-bit missile pointing upward. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
an 8-bit sun Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.