User prompt
Fix Bug: 'TypeError: Cannot read properties of null (reading 'x')' in this line: 'self.moveTo(self.workplace.x, self.workplace.y, 'goingToWork');' Line Number: 139
User prompt
Fix Bug: 'TypeError: Cannot read properties of null (reading 'x')' in this line: 'self.moveTo(self.workplace.x, self.workplace.y, 'goingToWork');' Line Number: 139
User prompt
make villager smarter
User prompt
show trhe framerate counter text and double is size
User prompt
move the framerate counter 500 pixel left
User prompt
move the framerate counter to the botom left of the screen
User prompt
show a villager countyer and a framerate counter
User prompt
create a villager every 0.3 second
User prompt
Fix Bug: 'TypeError: Cannot read properties of null (reading 'x')' in this line: 'self.moveTowards(self.home.x, self.home.y);' Line Number: 160
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'wood')' in this line: 'return gameResources.wood.amount >= 200 && gameResources.rock.amount >= 200 && gameResources.food.amount >= 200;' Line Number: 70
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'wood')' in this line: 'return gameResources.wood.amount >= 200 && gameResources.rock.amount >= 200 && gameResources.food.amount >= 200;' Line Number: 70
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'food')' in this line: 'return self.gameResources.food.amount > 100 && !self.workplace ? 0.7 : 0;' Line Number: 193
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'food')' in this line: 'return gameResources.food.amount > 100 && !self.workplace ? 0.7 : 0;' Line Number: 193
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'food')' in this line: 'return self.gameResources.food.amount > 100 && !self.workplace ? 0.7 : 0;' Line Number: 193
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'food')' in this line: 'return gameResources.food.amount > 100 && !self.workplace ? 0.7 : 0;' Line Number: 193
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'food')' in this line: 'return self.gameResources.food.amount > 100 && !self.workplace ? 0.7 : 0;' Line Number: 193
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'food')' in this line: 'return self.gameResources.food.amount > 100 && !self.workplace ? 0.7 : 0;' Line Number: 193
User prompt
villager move to work at begining
User prompt
make villager going to work
User prompt
make villager collect resource and increment the resource and update the resource text
User prompt
improve villager movement behavior
User prompt
Fix Bug: 'TypeError: Cannot read properties of null (reading 'x')' in this line: 'self.moveTowards(self.workplace.x, self.workplace.y);' Line Number: 143
User prompt
Fix Bug: 'TypeError: Cannot read properties of null (reading 'x')' in this line: 'self.moveTowards(self.workplace.x, self.workplace.y);' Line Number: 143
User prompt
improve villager IQ
User prompt
the villager alway move
===================================================================
--- original.js
+++ change.js
@@ -134,9 +134,9 @@
return b.utility - a.utility;
});
var chosenAction = utilities[0].action;
self.state = chosenAction;
- if (chosenAction === 'work' && self.workplace) {
+ if (chosenAction === 'work' && self.workplace && self.workplace.x !== null && self.workplace.y !== null) {
self.moveTo(self.workplace.x, self.workplace.y, 'goingToWork');
}
};
self.executeCurrentAction = 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.