User prompt
make the plain uppfront
User prompt
make the plain visible
User prompt
Fix Bug: 'ReferenceError: bullets is not defined' in this line: 'bullets.push(bullet);' Line Number: 26
User prompt
Fix Bug: 'ReferenceError: bullets is not defined' in this line: 'bullets.push(bullet);' Line Number: 26
User prompt
try again
User prompt
Fix Bug: 'ReferenceError: plains is not defined' in this line: 'for (var i = 0; i < plains.length; i++) {' Line Number: 60
User prompt
place a tower 200 pixel higher than the botom and 700 pixel to the left of the screen
User prompt
Fix Bug: 'TypeError: plains[i].shoot is not a function' in this line: 'plains[i].shoot(enemies, self);' Line Number: 53
User prompt
Fix Bug: 'TypeError: plains[i].shoot is not a function' in this line: 'plains[i].shoot();' Line Number: 53
User prompt
Fix Bug: 'Uncaught ReferenceError: Plain is not defined' in this line: 'var plain = new Plain();' Line Number: 33
User prompt
create the tower class. A tower who shot bullet to enemy
User prompt
move the plain 150 pixel to the left
User prompt
move the plain 300 pixel to the left
User prompt
move the plain 200 pixel to the right
User prompt
move the plain down by 150 pixel
User prompt
move the plain down by 300 pixel
User prompt
increse the size of the plain by 50 percent
User prompt
move the plain 500 pixel to the right
User prompt
reduce the size of the plain by 30 percent
User prompt
move the plain 800 pixel to the right
User prompt
Only one plain has to exist
User prompt
center the plain to the midle of the screen
User prompt
center the plain and double is size
User prompt
move the plain in the front and in the center off the screen
User prompt
Fix Bug: 'Uncaught ReferenceError: tower is not defined' in this line: 'tower.x = 2048 / 2 + i * 100;' Line Number: 24
===================================================================
--- original.js
+++ change.js
@@ -18,19 +18,15 @@
LK.stageContainer.setBackgroundColor(0xFFFFFF);
var plains = [];
var enemies = [];
var bullets = [];
- for (var i = 0; i < 5; i++) {
- var plain = new Plain();
- if (i === 0) {
- plain.x = 2048 / 2 - plain.width / 2 * plain.scale.x;
- plain.y = 2732 / 2 - plain.height / 2 * plain.scale.y;
- plain.scale.x = 2;
- plain.scale.y = 2;
- }
- plains.push(plain);
- self.addChild(plain);
- }
+ var plain = new Plain();
+ plain.x = 2048 / 2 - plain.width / 2 * plain.scale.x;
+ plain.y = 2732 / 2 - plain.height / 2 * plain.scale.y;
+ plain.scale.x = 2;
+ plain.scale.y = 2;
+ plains.push(plain);
+ self.addChild(plain);
for (var i = 0; i < 10; i++) {
var enemy = new Enemy();
enemy.x = 2048 / 2 + i * 100;
enemy.y = 2732 / 2 + 200;
A plain in a comic style with a dirt road with 4 turn staring to top to the botom see from a top and 50 meter high view Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A tower shooting at enemy in a modern style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A single soldat walking downard in a 16 bit style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.