User prompt
add a background color to resultText
Code edit (4 edits merged)
Please save this source code
User prompt
Add a global variable lastCandyY = 270 + 12 * 190; at the beginning
User prompt
Add lastCandyY = lastCandyCane.y in initGame
User prompt
Use lastCandyY instead of 250 + 12 * 190 + 20 in Explosion class
User prompt
in computer player class create asset named 'computerPlayer' in 1 player mode and 'secondPlayer' in 2 players mode. Don’t change anything else
User prompt
Replace playerMode === 1 ? 'Computer Player' : 'Second Player' by just 'Second Player'
Code edit (9 edits merged)
Please save this source code
User prompt
Set computerArmOffset to -30
User prompt
Set computerArmOffset to -120
Code edit (4 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: turn is not defined' in this line: 'console.log("handleSelection : minY=" + minY + " / trun ? " + turn);' Line Number: 75
Code edit (15 edits merged)
Please save this source code
Code edit (14 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -4,9 +4,9 @@
var isAnimatingEnd = false;
var playerMode = 0;
var playerTurn = true;
var playerSelecting = false;
-var computerArmOffset = -30;
+var computerArmOffset = -120;
var debug = false;
function addShadow(name, x, y) {
var shadow = new Container();
shadow.createAsset(name, name, 0, 0);
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