===================================================================
--- original.js
+++ change.js
@@ -56,12 +56,8 @@
var BlueSoldier = Container.expand(function () {
var self = Container.call(this);
var self = Soldier.call(this, 'blue');
});
-var RedTeamSoldier = Container.expand(function () {
- var self = Container.call(this);
- var self = Soldier.call(this, 'red');
-});
var Game = Container.expand(function () {
var self = Container.call(this);
var frameRateText = new Text2('FPS: Calculating...', {
size: 100,
@@ -132,13 +128,13 @@
soldiers.push(soldier);
self.addChild(soldier);
};
var spawnEnemy = function (position) {
- var redTeamSoldier = new RedTeamSoldier();
- redTeamSoldier.x = position.x;
- redTeamSoldier.y = position.y;
- enemies.push(redTeamSoldier);
- self.addChild(redTeamSoldier);
+ var redSoldier = new RedSoldier();
+ redSoldier.x = position.x;
+ redSoldier.y = position.y;
+ enemies.push(redSoldier);
+ self.addChild(redSoldier);
};
var handleTick = function () {
for (var i = 0; i < soldiers.length; i++) {
soldiers[i].move(enemies);
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.