User prompt
Fix Bug: 'TypeError: LK.gui.centerLeft is undefined' in this line: 'LK.gui.centerLeft.addChild(self.playerYPositionText);' Line Number: 109
Code edit (1 edits merged)
Please save this source code
User prompt
move handleSelection out of Game function, add all required arguments
Code edit (10 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: self.fade is not a function' in this line: 'self.fade(self.computerPlayer, 500, true);' Line Number: 151
Code edit (1 edits merged)
Please save this source code
User prompt
use the fade function instead of fadein/fadeout
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Show computer
User prompt
Fix can’t see computer
User prompt
Dix can’t see computer
User prompt
Invert the fade calls
User prompt
On up. Both fadein and fadeout should be called in both playerturn cases
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'self')' in this line: 'self.fadeOut = function (target, duration) {' Line Number: 81
User prompt
Fix fadein/out calls on up event
User prompt
Add a new fadeout function
User prompt
Add a fadeIn function same principle as fadeout but inverted
User prompt
Fix gui nb selected no updated
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'LK.gui.bottomCenter.addChild')' in this line: 'LK.gui.bottomCenter.addChild(self.candyCaneYPositionText);' Line Number: 129
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'LK.gui.bottomCenter.addChild')' in this line: 'LK.gui.bottomCenter.addChild(self.candyCaneYPositionText);' Line Number: 129
User prompt
Mov the y guis
User prompt
Fix candies in double
User prompt
Fix Bug: 'TypeError: undefined is not an object (evaluating 'LK.gui.bottomCenter.addChild')' in this line: 'LK.gui.bottomCenter.addChild(self.candyCaneYPositionText);' Line Number: 129
User prompt
Fix gui of player y and 1srt candy y not visible
===================================================================
--- original.js
+++ change.js
@@ -125,9 +125,9 @@
size: 100,
fill: "#ffffff"
});
self.candyCaneYPositionText.anchor.set(0.5, 0);
- LK.gui.bottomCenter.addChild(self.candyCaneYPositionText);
+ LK.gui.bottomLeft.addChild(self.candyCaneYPositionText);
LK.on('tick', function () {
if (candyCanes.length > 0 && self.candyCaneYPositionText) {
self.candyCaneYPositionText.setText('Y: ' + Math.round(candyCanes[0].y));
}
a christmas wooden board Background image. High contrast. No shadows.
a vertical christmas wooden board with snow, and decorations on its sides Background image. High contrast. No shadows.
a photo-realistic white and red vertical candy stick slice Single Game Texture. No background. High contrast. No shadows.
a horizontal santa's arm with a white glove and the index pointing to the right Single Game Texture. No background. High contrast. No shadows.
an green hairy grinch's arm, pointing in the horizontal direction, the index finger pointing to the left Single Game Texture. No background. High contrast. No shadows.
a photo-realistic white and red twisted candy stick slice in vertical position and with an extinguished wick. At its center, a simple white rectangular "TNT" sticker in the same direction as the stick Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
a top view of a TNT explosion fire Background image. High contrast. No shadows.
A funny Santa Claus disheveled and covered by black soot after an explosion. stary night. High contrast.
a futuristic white robot arm. horizontal direction. the index finger pointing to the left. Single Game Texture. No background. High contrast. No shadows.
A old super hero Santa Claus holding a candy cane in his hand High contrast.
frame of an empty christmas themed popup with a decorated border User interface
a single mat rounded empty button User interface