User prompt
Show conversation text
User prompt
Remove speech buble
User prompt
Double buble size and make them closer and upward citizen talking
User prompt
Lumberjack move more toward each other
User prompt
Create psychipathic text for conversation
User prompt
Add feeling to all citizen like happy, sad, flirty and psychopathic
User prompt
Create two lumberjack max
User prompt
Fix conversation bad fluidity with 3 optimisation
User prompt
Fix conversation bad fluidity with 4 optimisation
User prompt
Fix Bug: 'TypeError: self.initiator.createSpeechBubble is not a function' in this line: 'self.initiator.createSpeechBubble(message);' Line Number: 8
User prompt
Fix Bug: 'TypeError: self.initiator.createSpeechBubble is not a function' in this line: 'self.initiator.createSpeechBubble(message);' Line Number: 8
User prompt
Fix Bug: 'TypeError: self.initiator.createSpeechBubble is not a function' in this line: 'self.initiator.createSpeechBubble(message);' Line Number: 8
User prompt
Fix conversation bad fluidity with 3 optimisation
User prompt
Fix conversation bad fluidity
User prompt
Fix Bug: 'TypeError: LK.getFPS is not a function' in this line: 'self.framerateDisplay.setText('FPS: ' + Math.round(LK.getFPS()));' Line Number: 1195
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'setText')' in this line: 'self.timerText.setText('Time: ' + elapsedTime);' Line Number: 1194
User prompt
Fix Bug: 'TypeError: Cannot read properties of undefined (reading 'setText')' in this line: 'self.timerText.setText('Time: ' + elapsedTime);' Line Number: 1194
User prompt
Show fps at top right in big size
User prompt
Add 2 more lumberjack
User prompt
Fix Bug: 'Timeout.tick error: Cannot read properties of null (reading 'destroy')' in this line: 'self.initiator.speechBubble.destroy();' Line Number: 15
User prompt
Fix lumberjack movement
User prompt
Talk more
User prompt
Increase speed of lumberjack 3 time
User prompt
Citizen move 3 time faster
User prompt
Fix Bug: 'Timeout.tick error: speechBubble is not defined' in this line: 'speechBubble.destroy();' Line Number: 15
===================================================================
--- original.js
+++ change.js
@@ -4,20 +4,17 @@
self.receiver = receiver;
self.conversationStarters = ['Hello!', 'Nice to see you!', 'How are the trees today?', 'Chop any good wood lately?', 'Watch out for splinters!', 'What a lovely day!', 'Have you heard the latest news?', 'I hope the harvest is good this year.', 'The weather is perfect for a stroll.', 'I heard a new villager arrived!'];
self.initiate = function () {
var message = self.conversationStarters[Math.floor(Math.random() * self.conversationStarters.length)];
- self.initiator.speechBubble = new SpeechBubble(message, self.initiator);
- self.initiator.addChild(self.initiator.speechBubble);
+ self.initiator.createSpeechBubble(message);
self.initiator.speed = 0;
LK.setTimeout(function () {
self.initiator.speed = self.initiator.baseSpeed;
- }, 3000);
- LK.setTimeout(function () {
if (self.initiator.speechBubble) {
self.initiator.speechBubble.destroy();
self.initiator.speechBubble = null;
}
- }, 5000);
+ }, 3000);
};
});
var SpeechBubble = Container.expand(function (message, parentEntity) {
var self = Container.call(this);
@@ -969,8 +966,12 @@
};
});
var Villager = Container.expand(function (resources, iq) {
var self = Container.call(this);
+ Villager.prototype.createSpeechBubble = function (message) {
+ this.speechBubble = new SpeechBubble(message, this);
+ this.addChild(this.speechBubble);
+ };
self.gameResources = resources;
self.iq = iq;
self.moveTo = function (targetX, targetY, speed) {
var dx = targetX - self.x;
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.