User prompt
Make villager a lot smarter
User prompt
Improve villager iq
User prompt
Dont ad a home at begining
User prompt
Fix Bug: 'Uncaught ReferenceError: home is not defined' in this line: 'home.x = 700;' Line Number: 716
User prompt
Fix Bug: 'Uncaught ReferenceError: Home is not defined' in this line: 'var home = new Home();' Line Number: 695
User prompt
Remove home class
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'width')' in this line: 'self.x = Math.random() * (2048 - self.homeGraphics.width) + self.homeGraphics.width / 2;' Line Number: 163
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'children')' in this line: 'var buildings = self.parent.children.filter(function (child) {' Line Number: 139
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'children')' in this line: 'var buildings = self.parent.children.filter(function (child) {' Line Number: 139
User prompt
Fix Bug: 'Uncaught TypeError: Cannot read properties of null (reading 'children')' in this line: 'var buildings = self.parent.children.filter(function (child) {' Line Number: 139
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'length')' in this line: 'for (var i = 0; i < self.villagers.length; i++) {' Line Number: 562
User prompt
Each bâtiment need to have at least 200 pixel betwen each other
User prompt
Add only one market at the begining
User prompt
Add only one market at the begining
User prompt
Create a bakery
User prompt
Create a school and a inn
User prompt
Create a market
User prompt
Fix
User prompt
Fix
User prompt
Improve
User prompt
Fix
User prompt
Fix
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'collectResource')' in this line: 'self.collectResource = function (villager) {' Line Number: 318
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'collectResource')' in this line: 'self.collectResource = function (villager) {' Line Number: 318
User prompt
Fix Bug: 'Uncaught TypeError: Cannot set properties of undefined (setting 'collectResource')' in this line: 'self.collectResource = function (villager) {' Line Number: 318
===================================================================
--- original.js
+++ change.js
@@ -53,27 +53,8 @@
var Rock = Resource.expand(function () {
var self = Container.call(this);
var self = Resource.call(this, 'Rock', 100);
});
-var Home = Container.expand(function () {
- var self = Container.call(this);
- self.homeGraphics = self.createAsset('house', 'Villager Home Graphics', .5, .5);
- self.isOccupiable = true;
- self.occupy = function (villager) {
- if (!self.isOccupiable) return;
- self.isOccupiable = false;
- villager.home = this;
- LK.setTimeout(function () {
- villager.state = 'goingToWork';
- villager.moveTo(villager.workplace.x, villager.workplace.y);
- }, 5000);
- };
- self.initializeRandomPosition = function () {
- self.x = Math.random() * 2048;
- self.y = Math.random() * 2732;
- };
- self.initializeRandomPosition();
-});
var ResourceDisplay = Container.expand(function (resources) {
var self = Container.call(this);
self.woodDisplay = self.addChild(new WoodDisplay(resources.wood));
self.rockDisplay = self.addChild(new RockDisplay(resources.rock));
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.