User prompt
improve
User prompt
make all villager work
User prompt
all villager have to work
User prompt
fix villager not moving
User prompt
fix villager not going to work
User prompt
fix villager not moving
User prompt
send villager to work
User prompt
check bug
User prompt
improve villager IQ and check if theire doing somtehing
User prompt
Fix Bug: 'Uncaught ReferenceError: resourceCollector is not defined' in this line: 'self.resourceCollector = resourceCollector;' Line Number: 37
User prompt
Fix Bug: 'Uncaught ReferenceError: resourceCollector is not defined' in this line: 'var self = Container.call(this, resourceCollector);' Line Number: 36
User prompt
optimise
User prompt
Fix Bug: 'TypeError: self.calculateBuildUtility is not a function' in this line: 'return this.carriedWood > 0 || this.carriedRock > 0 || this.carriedFood > 0;' Line Number: 45
User prompt
add two new fonctionality
User prompt
add one new fonctionality
User prompt
improve villager IQ
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: 102
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: 102
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: 91
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: 91
User prompt
create two villager in vegining
User prompt
Fix Bug: 'TypeError: this.handleVillagersFallingInLove is not a function' in this line: 'this.handleVillagersFallingInLove(villagers, houses, resources);' Line Number: 249
User prompt
Fix Bug: 'TypeError: this.handleVillagersFallingInLove is not a function' in this line: 'this.handleVillagersFallingInLove(villagers, houses, resources);' Line Number: 249
User prompt
Fix Bug: 'TypeError: this.handleVillagersFallingInLove is not a function' in this line: 'this.handleVillagersFallingInLove(villagers, houses, resources);' Line Number: 249
User prompt
Fix Bug: 'TypeError: this.handleVillagersFallingInLove is not a function' in this line: 'this.handleVillagersFallingInLove(villagers, houses, resources);' Line Number: 249
===================================================================
--- original.js
+++ change.js
@@ -172,17 +172,17 @@
self.moveTowardsTarget = function () {
var dx = self.targetX - self.x;
var dy = self.targetY - self.y;
var distance = Math.sqrt(dx * dx + dy * dy);
- if (distance < 1) {
+ if (distance < self.speed) {
self.x = self.targetX;
self.y = self.targetY;
self.targetX = null;
self.targetY = null;
} else {
var angle = Math.atan2(dy, dx);
- self.x += Math.cos(angle) * self.speed;
- self.y += Math.sin(angle) * self.speed;
+ self.x += Math.cos(angle) * Math.min(self.speed, distance);
+ self.y += Math.sin(angle) * Math.min(self.speed, distance);
}
};
});
var OccupiableHouse = Container.expand(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.