User prompt
make the slow clouds faster
User prompt
make the fast clouds faster
User prompt
Make the slow clouds 50% smaller, and the fast clouds 50% bigger
User prompt
var Game = Container.expand(function () { var self = Container.call(this); LK.stageContainer.setBackgroundColor(0x0000ff); var clouds = []; for (var i = 0; i < 3; i++) { var slowCloud = new SlowCloud(); slowCloud.x = Math.random() * 2048; slowCloud.y = Math.random() * 2732; clouds.push(slowCloud); self.addChild(slowCloud); } for (var i = 0; i < 3; i++) { var mediumCloud = new MediumCloud(); mediumCloud.x = Math.random() * 2048; mediumCloud.y = Math.random() * 2732; clouds.push(mediumCloud); self.addChild(mediumCloud); } for (var i = 0; i < 3; i++) { var fastCloud = new FastCloud(); fastCloud.x = Math.random() * 2048; fastCloud.y = Math.random() * 2732; clouds.push(fastCloud); self.addChild(fastCloud); } var clouds = []; for (var i = 0; i < 3; i++) { var slowCloud = new SlowCloud(); slowCloud.x = Math.random() * 2048; slowCloud.y = Math.random() * 2732; clouds.push(slowCloud); self.addChild(slowCloud); } for (var i = 0; i < 3; i++) { var mediumCloud = new MediumCloud(); mediumCloud.x = Math.random() * 2048; mediumCloud.y = Math.random() * 2732; clouds.push(mediumCloud); self.addChild(mediumCloud); } for (var i = 0; i < 3; i++) { var fastCloud = new FastCloud(); fastCloud.x = Math.random() * 2048; fastCloud.y = Math.random() * 2732; clouds.push(fastCloud); self.addChild(fastCloud); }
User prompt
The slow clouds aren't moving at all. They should move slowly
User prompt
Rendering order should be sky, slow moving clouds, medium moving clouds, fastest clouds, then missiles and superman
User prompt
In the missile speed move function, multiply the gameDuration by 2.5 instead of 5
User prompt
The missile speed needs to be updated in the move function
User prompt
Instead, for missile speed, multiply self.gameDuration by 5
User prompt
on the missile speed, multiply self.gameDuration by 2
User prompt
The missiles need to speed up more as the game is played
User prompt
Fix Bug: 'ReferenceError: gameDuration is not defined' in this line: 'self.speed = -20 - gameDuration * 0.5;' Line Number: 61
User prompt
Make the missiles come in faster the longer the game is played.
User prompt
put a counter on screen to show how long the game has been played
User prompt
the slowest moving clouds should be in the bottom layer, then the second slowest moving clouds then the fastest moving clouds in the top layer. The blue background should be the first thing to draw.
User prompt
remove all scaling from superman
User prompt
Remove the gradient background, make it solid blue instead. The clouds should render on top of it, then superman and the missiles
User prompt
Fix Bug: 'TypeError: Graphics is not a constructor' in this line: 'var background = new Graphics();' Line Number: 51
User prompt
Fix Bug: 'TypeError: background.beginFill is not a function' in this line: 'background.beginFill(0x0000ff);' Line Number: 52
User prompt
Fix Bug: 'TypeError: Graphics is not a constructor' in this line: 'var background = new Graphics();' Line Number: 51
User prompt
Put a gradient background in that is the first thing rendered (so everything else renders on top of it). The gradient should be light blue at the bottom and dark blue at the top
User prompt
Make the clouds 4 times bigger
User prompt
speed up the movement of the clouds by 4 times
User prompt
remove the skybackground
User prompt
The clouds should be in the background, never on top of superman or the missiles
===================================================================
--- original.js
+++ change.js
@@ -47,27 +47,19 @@
};
});
var Game = Container.expand(function () {
var self = Container.call(this);
- var backgroundTop = self.createAsset('backgroundTop', 'Top half of the background', 0, 0);
- backgroundTop.width = 2048;
- backgroundTop.height = 2732 / 2;
- var backgroundBottom = self.createAsset('backgroundBottom', 'Bottom half of the background', 0, 0);
- backgroundBottom.width = 2048;
- backgroundBottom.height = 2732 / 2;
- backgroundBottom.y = 2732 / 2;
- self.addChildAt(backgroundTop, 0);
- self.addChildAt(backgroundBottom, 0);
- var superman = self.addChild(new Superman());
- var missiles = [];
+ LK.stageContainer.setBackgroundColor(0x0000ff);
var clouds = [];
for (var i = 0; i < 9; i++) {
var cloud = new Cloud();
cloud.x = Math.random() * 2048;
cloud.y = Math.random() * 2732;
clouds.push(cloud);
- self.addChildAt(cloud, 0);
+ self.addChild(cloud);
}
+ var superman = self.addChild(new Superman());
+ var missiles = [];
superman.x = 100;
superman.y = 2732 / 2;
var isGameOver = false;
var tickOffset = 0;
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.