Code edit (1 edits merged)
Please save this source code
Code edit (11 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: Error: Invalid color format. Expected 0xRRGGBB format, received: undefined' in or related to this line: 'tween(tileGraphics, {' Line Number: 235
Code edit (1 edits merged)
Please save this source code
Code edit (2 edits merged)
Please save this source code
User prompt
in handlePlayingStateDown, if not taping an operation but tapping a tile, play tick sound
Code edit (20 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: tile is not defined' in or related to this line: 'tween(tile, {' Line Number: 945
Code edit (1 edits merged)
Please save this source code
Code edit (6 edits merged)
Please save this source code
User prompt
in createOperations, before `self.operations = [];` destroy all previous remaining operations
Code edit (10 edits merged)
Please save this source code
User prompt
adapt areNeighbors to take int oaccount the fact that the grid is hexagonal. ie: tile at 2,3 is not adjacent with tile at 1,2 even if dx=1 and dy=1
Code edit (1 edits merged)
Please save this source code
User prompt
add detailed logs in areNeighbors
User prompt
there is a problem with fillTilesNeighbors : it doesn't actually check if the the tiles are adjacent using their row and col ! please fix
User prompt
there is a problem with getAdjacentTiles algorithm : it selects tiles with same value even if there are not adjacent! please fix
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: undefined is not an object (evaluating 'self.board[0].tileSizeX')' in or related to this line: 'log("createBoard calc: ", game.width, maxCols, self.board[0].tileSizeX, -maxCols * self.board[0].tileSizeX);' Line Number: 682
Code edit (2 edits merged)
Please save this source code
User prompt
in PuzzleManager reset(), if there are previous tiles and operations, animate their move randomy out of screen before destroying them
User prompt
when reset button is disabled, animate it size reduce by 20%; when reset button is enabled, animate it size resotred to 100%
User prompt
when reset button pressed, animate its smooth rotation then restore it to 0
Code edit (1 edits merged)
Please save this source code
User prompt
rework shake anim, to make tiles rotate back an foth with bounceIn easing like as they say "no"
===================================================================
--- original.js
+++ change.js
@@ -580,9 +580,9 @@
self.game = game;
self.activeTileCount = 0; // Initialize active tile count
self.levelBoardOffsetX = 0; // Initialize levelBoardOffsetX
self.levelBoardOffsetY = 0; // Initialize levelBoardOffsetY
- self.currentLevel = debug ? 3 : 1;
+ self.currentLevel = debug ? 8 : 1;
self.previousLevelNumber = 1;
self.board = [];
self.operations = [];
self.isAnimating = false;
@@ -1608,26 +1608,26 @@
"tiles": [["", "", 1, "", ""], ["", "", 1, 1, ""], ["", 2, 2, 2, ""], ["", 2, 2, 2, 2], [3, 3, 3, 3, 3], ["", 2, 2, 2, 2], ["", 2, 2, 2, ""], ["", "", 1, 1, ""], ["", "", 1, "", ""]],
"operations": ['+1', '+1', '-1', '-2']
},
4: {
- "tiles": [["", "", "", "", "", ""], ["", "", "", 1, "", ""], ["", 1, 1, 1, 1, ""], ["", 2, "", "", "", 2], [3, 3, 3, 3, 3, 3], ["", 2, "", "", "", 2], ["", 1, 1, 1, 1, ""], ["", "", "", 1, "", ""]],
- "operations": ["-1", "-1", "-1", "-1", "-1"]
+ "tiles": [["", "", "", "", "", ""], ["", 2, 2, 1, 2, 2], [2, 1, 1, 1, 1, 2], ["", 2, "", "", "", 2], [3, 2, 3, 3, 2, 3], ["", 2, 3, "", 3, 2], [2, 3, 3, 3, 3, 2], ["", 2, 2, 3, 2, 2]],
+ "operations": ["-1", "-2", "+1", "+1"]
},
5: {
- "tiles": [["", "", 3, 3, 3, "", ""], ["", "", 3, 1, 1, 3, ""], ["", 3, 1, 1, 1, 3, ""], ["", 3, 1, 2, 2, 1, 3], [3, 1, 2, 2, 2, 1, 3], ["", 3, 1, 2, 2, 1, 3], ["", 3, 1, 1, 1, 3, ""], ["", "", 3, 3, 3, 3, ""], ["", "", "", 3, "", "", ""]],
- "operations": ["-1", "-1", "-1", "-1"]
+ "tiles": [["", "", 2, 2, 2, ""], ["", "", 2, 1, 1, 2], ["", 2, 1, 2, 1, 2], ["", "", 2, 1, 1, 2], ["", "", 2, 2, 2, ""], ["", "", "", "", "", ""], ["", "", 2, 2, "", ""], ["", "", 2, 1, 2, ""], [1, 1, 2, 2, "", ""]],
+ "operations": ["-1", "-1", "+1", "-1", "-1"]
},
6: {
- "tiles": [["", "", 2, 2, 2, "", ""], ["", "", 2, 1, 1, 2, ""], ["", 2, 1, 2, 1, 2, ""], ["", 2, 1, 2, 2, 1, 2], ["", 2, 1, 2, 1, 2, ""], ["", "", 2, 1, 1, 2, ""], ["", "", 2, 2, 2, "", ""]],
- "operations": ["-1", "-1", "-1", "-1"]
+ "tiles": [["", "", 3, 3, "", ""], ["", "", 3, 2, 3, ""], ["", 3, 2, 2, 3, ""], ["", 3, 2, 2, 2, 3], [3, 2, 2, 2, 2, 3], ["", "", "", 3, "", ""], ["", "", 3, 3, "", ""], ["", 1, 1, 1, 1, 1], ["", 1, 1, 1, 1, ""]],
+ "operations": ["+1", "-2", "-1"]
},
7: {
- "tiles": [["", "", "", 1, 1, "", "", ""], ["", "", "", 1, 1, 1, "", ""], ["", "", 1, 1, 1, 1, "", ""], ["", "", 1, 1, 1, 1, 1, ""], ["", 1, 1, 1, 1, 1, 1, ""], ["", 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, 1], ["", 1, 1, 1, 1, 1, 1, 1], ["", 1, 1, 1, 1, 1, 1, ""], ["", "", 1, 1, 1, 1, 1, ""], ["", "", 1, 1, 1, 1, "", ""], ["", "", "", 1, 1, 1, "", ""], ["", "", "", 1, 1, "", "", ""]],
- "operations": ["-1"]
+ "tiles": [[2, "", "", "", "", 1], ["", 2, "", "", "", 3], [2, "", 2, 3, "", 3], ["", 2, 2, "", 3, 3], ["", 2, "", "", 3, ""], ["", "", 1, "", 1, ""], ["", "", 1, 1, "", ""], ["", "", "", 1, "", ""], ["", "", "", "", "", ""]],
+ "operations": ["+1", "-2", "-2"]
},
8: {
- "tiles": [["", "", 1, 1, 1, "", "", ""], ["", "", 1, 1, 1, 1, "", ""], ["", 1, 1, 1, 1, 1, "", ""], ["", 1, 1, 1, 1, 1, 1, ""], [1, 1, 1, 1, 1, 1, 1, ""], [1, 1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, 1, ""], ["", 1, 1, 1, 1, 1, 1, ""], ["", 1, 1, 1, 1, 1, "", ""], ["", "", 1, 1, 1, 1, "", ""], ["", "", 1, 1, 1, "", "", ""]],
- "operations": ["-1"]
+ "tiles": [["", 3, 1, 2, 1, "", ""], ["", 3, 1, 2, 1, "", ""], [3, 1, 2, 1, "", "", ""], ["", "", "", "", 1, 1, ""], [3, 3, 3, 1, 1, 1, 1], ["", 3, 3, 1, 1, 2, ""], ["", 3, 1, 1, 2, 2, ""], ["", "", 1, 1, 2, 2, ""], ["", "", 1, 2, 2, "", ""]],
+ "operations": ["-2", "+2", "-1", "-1", "-1"]
},
9: {
"tiles": [["", "", 1, 1, "", "", ""], ["", "", 1, 1, 1, "", ""], ["", 1, 1, 1, 1, "", ""], ["", 1, 1, 1, 1, 1, ""], [1, 1, 1, 1, 1, 1, ""], [1, 1, 1, 1, 1, 1, 1], [1, 1, 1, 1, 1, 1, ""], ["", 1, 1, 1, 1, 1, ""], ["", 1, 1, 1, 1, "", ""], ["", "", 1, 1, 1, "", ""], ["", "", 1, 1, "", "", ""]],
"operations": ["-1"]
tick
Sound effect
tileEntrance
Sound effect
tileRemove
Sound effect
operationSelect
Sound effect
operationCancel
Sound effect
tileChangeValue
Sound effect
resetSound
Sound effect
levelFailed
Sound effect
menuLevelSelect
Sound effect
menuCellEnter
Sound effect
applause
Sound effect
bgMusic
Music
tada
Sound effect