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
@@ -36,8 +36,17 @@
var treeGraphics = self.createAsset('treeImage', 'Tree Image', .5, .5);
});
var Villager = Container.expand(function (resources) {
var self = Container.call(this);
+ Villager.prototype.kiss = function (partner) {
+ if (this.canFallInLove(partner)) {
+ var babyX = (this.x + partner.x) / 2;
+ var babyY = (this.y + partner.y) / 2;
+ var babyVillager = this.parent.createAndAddVillager(babyX, babyY);
+ babyVillager.home = this.home;
+ babyVillager.workplace = this.workplace;
+ }
+ };
Villager.prototype.continuousMove = function () {
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));
@@ -347,8 +356,9 @@
var childY = (villagerA.y + villagerB.y) / 2;
var childVillager = self.createAndAddVillager(childX, childY);
childVillager.home = villagerA.home;
childVillager.workplace = self.workplaces[Math.floor(Math.random() * self.workplaces.length)];
+ villagerA.kiss(villagerB);
}, 1000);
break;
}
}
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.