User prompt
Reduce background size
User prompt
Double background size
User prompt
Center background
User prompt
Double background size
User prompt
Fix Bug: 'Uncaught TypeError: self.createBackground is not a function' in this line: 'self.createBackground();' Line Number: 377
User prompt
Create background
User prompt
Fix Bug: 'Uncaught TypeError: self.initializeWorkPlace is not a function' in this line: 'self.initializeWorkPlace();' Line Number: 270
User prompt
Fix all code
User prompt
Fix
User prompt
Fix Bug: 'Uncaught ReferenceError: Villager is not defined' in this line: 'Villager.prototype.isDoingSomething = function () {' Line Number: 287
User prompt
Fix
User prompt
Fix
User prompt
Fix Bug: 'Uncaught TypeError: villager.initializePosition is not a function' in this line: 'villager.initializePosition(x, y);' Line Number: 259
User prompt
Fix Bug: 'Uncaught TypeError: self.initializePosition is not a function' in this line: 'self.initializePosition();' Line Number: 68
User prompt
Fix
User prompt
Fix
User prompt
Improve 2 time
User prompt
Improve
User prompt
Improve
User prompt
Fix Bug: 'this.createAndAddVillager is not a function' in this line: 'this.createAndAddVillager(false, Math.random() * 50 + 50, Math.random() * 2048, Math.random() * 2732);' Line Number: 402
User prompt
Improve
User prompt
Improve
User prompt
Improve
User prompt
Fix Bug: 'Uncaught ReferenceError: Villager is not defined' in this line: 'Villager.prototype.isDoingSomething = function () {' Line Number: 270
User prompt
Fix
===================================================================
--- original.js
+++ change.js
@@ -349,19 +349,12 @@
this.woodDisplay.position.set(100, 50);
this.rockDisplay.position.set(300, 50);
this.foodDisplay.position.set(500, 50);
};
-Well.prototype.initializePosition = function () {
- this.position.set(2048 / 2 - 800, 2732 / 2 - 600);
-};
var FanBehavior = function (fan) {
this.fan = fan;
};
FanBehavior.prototype.cheer = function () {};
-VillagerHome.prototype.initializeRandomPosition = function () {
- this.x = Math.random() * 2048;
- this.y = Math.random() * 2732;
-};
Bakery.prototype.sellBread = function (villager) {
if (villager.gameResources.food.amount >= 5) {
villager.gameResources.food.amount -= 5;
villager.energy += 10;
@@ -402,12 +395,8 @@
this.targetY = Math.random() * 2732;
this.state = 'wandering';
}
};
-Villager.prototype.initializePosition = function (x, y) {
- this.x = x;
- this.y = y;
-};
Villager.prototype.update = function () {};
var Game = Container.expand(function () {
var self = Container.call(this);
Game.prototype.createAndInitializeVillagers = function () {
A background of a paysage with plain and without tree or montainbut no water see from the top in the air 100m by 100m Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
One human medieval villager in a warcraft 2 style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a house in a warcraft 2 style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A tree a rock and crambery in a RTS style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A heart comic style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A cloud in a comic style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A market in a RTS fantasy style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
An Inn in a RTS fantasy style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
An school in a RTS fantasy style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
An bakery in a RTS fantasy style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A well in a RTS fantasy style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A tree in a rts style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
An apple in a rts style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A rock in a rts style Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A home in a RTS and fantasy style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A brewery in a fantasy rts style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
A lumberjack in a fantasy rts style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a marketplace in a fantasy rts style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a festival in a fantasy rts style. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.