User prompt
The soldier cant pass the midle of the screen
User prompt
Fix the soldier not dieing
User prompt
Fix the soldier being hit. The bullet has to be destroy after the hit
User prompt
Soldiers die after beeing shoot 2 time
User prompt
The soldier can shoot at each other no matter the distance to each other
User prompt
Double the fire rate
User prompt
The soliders has to shoot toward other team solders
User prompt
Double the speed and the soliders can move 300 pixel close to the middle of the screen
User prompt
Fix Bug: 'TypeError: this.targetTeam.forEach is not a function' in this line: 'this.targetTeam.forEach(function (target, index) {' Line Number: 162
User prompt
Make the soldiers mive
User prompt
The soldier move and shoot and improve their iq
User prompt
Make zeo soldiers in the begining
User prompt
fix the bullet
User prompt
divive the soldiers number at the start per 4
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'expand')' in this line: 'var RedSoldier = Soldier.expand(function () {' Line Number: 9
User prompt
Fix Bug: 'TypeError: soldier.startFighting is not a function' in this line: 'soldier.startFighting(enemies);' Line Number: 114
User prompt
fix
User prompt
fix
User prompt
fix
User prompt
improve the fluidity
User prompt
divei the number of soldier at the start of the game per 3
User prompt
double the number of soldiers at star of the game
User prompt
double the soldiers number at the begining of the game
User prompt
double the number of soldiers at the begining of the game
User prompt
double the soldiers number at the start of the game
===================================================================
--- original.js
+++ change.js
@@ -45,10 +45,14 @@
var directionX = closestEnemy.x - self.x;
var directionY = closestEnemy.y - self.y;
var distance = Math.sqrt(directionX * directionX + directionY * directionY);
var moveSpeed = 3;
- self.x += moveSpeed * (directionX / distance);
- self.y += moveSpeed * (directionY / distance);
+ var newX = self.x + moveSpeed * (directionX / distance);
+ var newY = self.y + moveSpeed * (directionY / distance);
+ if (self.color === 'blue' && newX < 2048 / 2 || self.color === 'red' && newX > 2048 / 2) {
+ self.x = newX;
+ self.y = newY;
+ }
}
};
self.shoot = function (targetTeam) {
var bullet = new Bullet();
a big plain show from the top with a line right at the center of the plain to the top from the botom Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a blue toy soldier Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a red toy soldier Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A start Battle button Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A blue soldier toy Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A red soldier toy Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a bullet in an anime style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.