User prompt
when villager kiss they make a baby
User prompt
make the villager kiss more
User prompt
when villager fall in love and kiss each other their create a child who spawn a new villager
User prompt
improve viller IQ to be 10 time smarter
User prompt
update the resource text
User prompt
start with 100 resource of each
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'wood')' in this line: 'resourceDisplayText.setText('Resources: Wood ' + self.gameResources.wood.amount + ' Rock ' + self.gameResources.rock.amount + ' Food ' + self.gameResources.food.amount);' Line Number: 263
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'update')' in this line: 'self.resourceDisplay.update(self.resources);' Line Number: 324
User prompt
update resource text base on current resource
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'food')' in this line: 'if (self.resources.food.amount >= 10) {' Line Number: 404
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'food')' in this line: 'if (Game.prototype.resources.food.amount >= 10) {' Line Number: 404
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'food')' in this line: 'if (self.resources.food.amount >= 10) {' Line Number: 404
User prompt
spawn a villager by using 10 fonnd resource if available
User prompt
create 10 villager every ms
User prompt
create a viller every ms
User prompt
add a villager every 0.001 second
User prompt
add a vilager very 0.01 second
User prompt
Fix Bug: 'ReferenceError: timerText is not defined' in this line: 'timerText.setText('Time: ' + elapsedTime);' Line Number: 410
User prompt
Fix Bug: 'ReferenceError: timerText is not defined' in this line: 'timerText.setText('Time: ' + elapsedTime);' Line Number: 410
User prompt
Fix Bug: 'ReferenceError: startTime is not defined' in this line: 'var elapsedTime = Math.floor((currentTime - startTime) / 1000);' Line Number: 408
User prompt
Fix Bug: 'ReferenceError: startTime is not defined' in this line: 'var elapsedTime = Math.floor((currentTime - startTime) / 1000);' Line Number: 400
User prompt
Fix Bug: 'framerateText is not defined' in this line: 'framerateText.anchor.set(0, 1);' Line Number: 285
User prompt
Fix Bug: 'Uncaught ReferenceError: framerateText is not defined' in this line: 'framerateText.anchor.set(0, 1);' Line Number: 285
User prompt
show a timer
User prompt
a new villager is spawn every 0.1 second
===================================================================
--- original.js
+++ change.js
@@ -41,9 +41,9 @@
if (this.x < this.speed || this.x > 2048 - this.speed) this.directionX *= -1;
if (this.y < this.speed || this.y > 2732 - this.speed) this.directionY *= -1;
this.x = Math.max(this.speed, Math.min(2048 - this.speed, this.x + this.speed * this.directionX));
this.y = Math.max(this.speed, Math.min(2732 - this.speed, this.y + this.speed * this.directionY));
- if (Math.random() < 0.05) {
+ if (Math.random() < 0.5) {
this.directionX = Math.random() < 0.5 ? -1 : 1;
this.directionY = Math.random() < 0.5 ? -1 : 1;
}
};
@@ -69,9 +69,9 @@
Villager.prototype.canBuildHouse = function () {
return this.gameResources && this.gameResources.wood.amount >= 200 && this.gameResources.rock.amount >= 200 && this.gameResources.food.amount >= 200;
};
Villager.prototype.calculateBuildUtility = function () {
- return this.canBuildHouse() ? 0.8 : 0;
+ return this.canBuildHouse() ? 1 : 0;
};
Villager.prototype.hasResources = function () {
return this.carriedWood > 0 || this.carriedRock > 0 || this.carriedFood > 0;
};
@@ -182,15 +182,15 @@
self.gameResources.food.amount -= 100;
}
};
self.calculateWorkUtility = function () {
- return self.workplace && self.workplace.resourceType && self.workplace.resourceType.amount > 0 ? 0.8 : 0.2;
+ return self.workplace && self.workplace.resourceType && self.workplace.resourceType.amount > 0 ? 1 : 0.2;
};
self.calculateHomeUtility = function () {
- return self.tiredness > 0.7 || self.hasResources() ? 0.8 : 0.2;
+ return self.tiredness > 0.7 || self.hasResources() ? 1 : 0.2;
};
self.calculatePlantUtility = function (gameResources) {
- return self.gameResources && self.gameResources.food.amount > 100 && !self.workplace ? 0.7 : 0;
+ return self.gameResources && self.gameResources.food.amount > 50 && !self.workplace ? 1 : 0;
};
self.moveTowards = function (x, y) {
if (self.x !== x || self.y !== y) {
self.moveTo(x, y);
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.