User prompt
Please fix the bug: 'TypeError: villager.initiateConversation is not a function' in or related to this line: 'villager.initiateConversation(otherVillager);' Line Number: 1742
User prompt
Please fix the bug: 'TypeError: villager.getBounds(...).intersects is not a function' in or related to this line: 'if (villager !== otherVillager && villager.getBounds().intersects(otherVillager.getBounds())) {' Line Number: 1741
User prompt
Please fix the bug: 'TypeError: villager.getBounds(...).intersects is not a function' in or related to this line: 'if (villager !== otherVillager && villager.intersects(otherVillager)) {' Line Number: 1741
User prompt
Please fix the bug: 'TypeError: villager.getBounds(...).intersects is not a function' in or related to this line: 'if (villager !== otherVillager && villager.getBounds().intersects(otherVillager.getBounds()) && villager.intersects(otherVillager)) {' Line Number: 1741
User prompt
improve the framerate
User prompt
Please fix the bug: 'TypeError: villager.initiateConversation is not a function' in or related to this line: 'villager.initiateConversation(otherVillager);' Line Number: 1722
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'forEach')' in or related to this line: 'game.resources.forEach(function (resource) {' Line Number: 1729
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'forEach')' in or related to this line: 'game.resources.forEach(function (resource) {' Line Number: 1734
User prompt
Please fix the bug: 'TypeError: villager.initiateConversation is not a function' in or related to this line: 'villager.initiateConversation(otherVillager);' Line Number: 1717
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'forEach')' in or related to this line: 'game.resources.forEach(function (resource) {' Line Number: 1729
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'forEach')' in or related to this line: 'game.buildings.forEach(function (building) {' Line Number: 1721
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'forEach')' in or related to this line: 'game.resources.forEach(function (resource) {' Line Number: 1729
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'forEach')' in or related to this line: 'game.buildings.forEach(function (building) {' Line Number: 1721
User prompt
Please fix the bug: 'TypeError: Cannot read properties of undefined (reading 'wood')' in or related to this line: 'if (!self.home && self.gameResources.wood.amount >= 5) {' Line Number: 1252
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'toString')' in or related to this line: 'self.foodText = new Text2(foodResource.amount.toString(), {' Line Number: 497
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'toString')' in or related to this line: 'self.rockText = new Text2(rockResource.amount.toString(), {' Line Number: 1012
User prompt
improve the game
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'toString')' in or related to this line: 'self.woodText = new Text2(woodResource && woodResource.amount.toString(), {' Line Number: 1479
User prompt
Migrate to the latest version of LK
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'toString')' in or related to this line: 'self.woodText = new Text2(woodResource.amount.toString(), {' Line Number: 1479
User prompt
fix
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'wood')' in or related to this line: 'self.woodDisplay = self.addChild(new WoodDisplay(resources.wood));' Line Number: 975
User prompt
Improve the game in 3 way
User prompt
improve all the game
User prompt
make all villager move
===================================================================
--- original.js
+++ change.js
@@ -1214,8 +1214,23 @@
speechBubble.destroy();
}, 3000);
}
};
+ Villager.prototype.talkTo = function (otherVillager) {
+ if (otherVillager && otherVillager instanceof Villager) {
+ var message = this.conversationStarters['flirty'][Math.floor(Math.random() * this.conversationStarters['flirty'].length)];
+ var speechBubble = new Text2(message, {
+ size: 50,
+ fill: 0xFFFFFF
+ });
+ speechBubble.x = (this.x + otherVillager.x) / 2;
+ speechBubble.y = (this.y + otherVillager.y) / 2;
+ this.parent.addChild(speechBubble);
+ LK.setTimeout(function () {
+ speechBubble.destroy();
+ }, 3000);
+ }
+ };
});
var VillagerBehavior = Container.expand(function (villager) {
var self = Container.call(this);
self.villager = villager;
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.