User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'bullets')' in this line: 'game.bullets.push(bullet);' Line Number: 58
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'bullets')' in this line: 'self.game.bullets.push(bullet);' Line Number: 58
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'bullets')' in this line: 'self.game.bullets.push(bullet);' Line Number: 58
User prompt
make the framerate counter more correct
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'bullets')' in this line: 'self.game.bullets.push(bullet);' Line Number: 58
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'bullets')' in this line: 'self.game.bullets.push(bullet);' Line Number: 58
User prompt
optimise the code
User prompt
add 3 soldier every new round
User prompt
update the enemy count at every new round and ad 8 enemy every new round
User prompt
move the tower 400 pixel down and 30 pixel left and add 3 soldier every round
User prompt
optimise the enemy counter
User prompt
increment the speed of the enemy by 60 percent
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'length')' in this line: 'self.enemyCounterTxt = new Text2('Enemies: ' + self.enemies.length.toString(), {' Line Number: 106
User prompt
Show a counter off the numer of enemy alive
User prompt
move the tower 50 pixel to the left
User prompt
triple the speed and the fire rate off the bullet
User prompt
double the fire rate and the speed of the bullet
User prompt
optimise the framerate fluidity off all the code as much you can even if its take you many try
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'gold')' in this line: 'self.game.gold += 50;' Line Number: 85
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'incrementScore')' in this line: 'self.game.incrementScore();' Line Number: 83
User prompt
Fix Bug: 'TypeError: self.incrementScore is not a function' in this line: 'self.incrementScore();' Line Number: 83
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'incrementScore')' in this line: 'self.game.incrementScore();' Line Number: 83
User prompt
Make the framerate counter black and double the speed of the enemy
User prompt
move the tower 300 pixel down
User prompt
add only one more soldier every new round
===================================================================
--- original.js
+++ change.js
@@ -54,10 +54,10 @@
self.fireBullet = function () {
var bullet = new Bullet();
bullet.x = self.x;
bullet.y = self.y;
- game.bullets.push(bullet);
- game.addChild(bullet);
+ self.bullets.push(bullet);
+ self.addChild(bullet);
self.cooldownTimer = self.cooldown;
};
});
var Enemy = Container.expand(function () {
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.