User prompt
add cloud sprites to the background. There should be three layers of clouds to create the illusion of parallax. Clouds should have no collision
User prompt
Let's scroll the sky background 4 times faster
User prompt
let's make the missiles twice as fast again.
User prompt
Let's make the missiles come in twice as fast
User prompt
Zoom in on the skybackground
User prompt
remove superman's health, there is only a hitcount
User prompt
If superman his hit by a missile 4 times, the game is over
User prompt
Let's make superman and the missiles twice as big
User prompt
The game should be over once 3 missiles hit superman
User prompt
When a missile hits superman, remove it from the game.
User prompt
Let's allow Superman to get hit 3 times before game over.
User prompt
Center the explosion at the contact point of the missile and superman.
User prompt
When superman is hit by a missile, there should be an explosion that displays for half a second.
User prompt
The sky should tile, so as the left side pans off the screen it should be rendered on the right.
User prompt
Let's make superman and the missiles twice as big
User prompt
Let's make the sky background pan slowly to the left
User prompt
Add a sky background
User prompt
Flip the missile image along the vertical axis when rendering
User prompt
remove the health bar
User prompt
The health bar should run along the bottom of the superman block and be the same width.
User prompt
Make the superman box bigger. The health bar should run along the bottom of it
User prompt
Give the superman a health bar. Health should be decreased every time he hits a missile.
User prompt
Fix Bug: 'TypeError: missiles[a] is undefined' in this line: 'missiles[a].move();' Line Number: 31
Initial prompt
Superman Game
===================================================================
--- original.js
+++ change.js
@@ -22,15 +22,23 @@
var self = Container.call(this);
var skyBackground = self.createAsset('sky', 'Sky Background', 0, 0);
skyBackground.width = 2048;
skyBackground.height = 2732;
+ skyBackground.speed = 1;
+ skyBackground.move = function () {
+ this.x -= this.speed;
+ if (this.x <= -2048) {
+ this.x = 0;
+ }
+ };
var superman = self.addChild(new Superman());
var missiles = [];
superman.x = 100;
superman.y = 2732 / 2;
var isGameOver = false;
var tickOffset = 0;
LK.on('tick', function () {
+ skyBackground.move();
if (isGameOver) {
LK.effects.flashScreen(0xff0000, 1000);
LK.showGameOver();
}
Side view of superman flying from left to right, with his fist pushed out in front of him. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a missile flying parallel to the ground Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A sky with clouds, tileable Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
An explosion Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a puffy white cloud Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.