User prompt
make the start button upfront
User prompt
rename enemy redteamsoldier
User prompt
soldier apair at the position off the mouse cursor on click
User prompt
create a redsoldierimage
User prompt
show the start battle button
User prompt
add a start battle button on the botom center off the screen. When click the battle is started. Can be click only one time
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'expand')' in this line: 'var RedSoldier = Soldier.expand(function () {' Line Number: 1
User prompt
when you click to the left of the center off the screen you add a blue team soldier, and on the right a red team soldier
User prompt
create a soldier asset
User prompt
create a blue soldier class with an image asset
User prompt
create two team, the blue team and the red team
User prompt
make the background 40 percent bigger
User prompt
move the center of the battleplain image to the center of the screen
User prompt
center the battleplain to the middle off the screen
User prompt
center the battleplain
User prompt
add a background bame battlePlain
Initial prompt
Totaly not acurate battle sim
===================================================================
--- original.js
+++ change.js
@@ -24,8 +24,14 @@
});
var Game = Container.expand(function () {
var self = Container.call(this);
var battleStarted = false;
+ var background = self.createAsset('battlePlain', 'Background Battle Plain', 0, 0);
+ background.anchor.set(0.5, 0.5);
+ background.x = 2048 / 2;
+ background.y = 2732 / 2;
+ background.scale.set(1.4);
+ self.addChild(background);
var startBattleButton = self.createAsset('startBattleButton', 'Start Battle Button', 0.5, 0.5);
startBattleButton.x = 2048 / 2;
startBattleButton.y = 2732 / 2 - startBattleButton.height / 2;
self.addChild(startBattleButton);
@@ -34,14 +40,8 @@
battleStarted = true;
startBattleButton.destroy();
}
});
- var background = self.createAsset('battlePlain', 'Background Battle Plain', 0, 0);
- background.anchor.set(0.5, 0.5);
- background.x = 2048 / 2;
- background.y = 2732 / 2;
- background.scale.set(1.4);
- self.addChild(background);
var soldiers = [];
var enemies = [];
var spawnSoldier = function (position) {
var soldier = new BlueSoldier();
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.