===================================================================
--- original.js
+++ change.js
@@ -1,7 +1,7 @@
-var Tower = Container.expand(function () {
+var Plain = Container.expand(function () {
var self = Container.call(this);
- var towerGraphics = self.createAsset('tower', 'Tower Graphics', .5, .5);
+ var plainGraphics = self.createAsset('plain', 'Plain Graphics', .5, .5);
self.shoot = function () {};
});
var Enemy = Container.expand(function () {
var self = Container.call(this);
@@ -15,16 +15,16 @@
});
var Game = Container.expand(function () {
var self = Container.call(this);
LK.stageContainer.setBackgroundColor(0xFFFFFF);
- var towers = [];
+ var plains = [];
var enemies = [];
var bullets = [];
for (var i = 0; i < 5; i++) {
- var tower = new Tower();
+ var plain = new Plain();
tower.x = 2048 / 2 + i * 100;
tower.y = 2732 / 2;
- towers.push(tower);
+ plains.push(plain);
self.addChild(tower);
}
for (var i = 0; i < 10; i++) {
var enemy = new Enemy();
@@ -33,10 +33,10 @@
enemies.push(enemy);
self.addChild(enemy);
}
LK.on('tick', function () {
- for (var i = 0; i < towers.length; i++) {
- towers[i].shoot();
+ for (var i = 0; i < plains.length; i++) {
+ plains[i].shoot();
}
for (var i = 0; i < enemies.length; i++) {
enemies[i].move();
}
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.