Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'levelBoardOffsetX is not defined' in or related to this line: 'break;' Line Number: 973
User prompt
Please fix the bug: 'levelBoardOffsetX is not defined' in or related to this line: 'log("createBoard levelBoardOffsetX: ", levelBoardOffsetX, " vs ", calcOffsetX);' Line Number: 601
Code edit (9 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'tileSize')' in or related to this line: 'var calcOffsetX = (game.width - maxCols * boardContainer[0].tileSize) / 2;' Line Number: 589
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
in updateOperations , replace op.x = operationX; by an animation
Code edit (3 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'show')' in or related to this line: 'op.show();' Line Number: 663
User prompt
Please fix the bug: 'Timeout.tick error: Cannot read properties of undefined (reading 'show')' in or related to this line: 'op.show();' Line Number: 663
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: operation is not defined' in or related to this line: 'operation.setBasePosition(operationX, op.baseY);' Line Number: 668
Code edit (11 edits merged)
Please save this source code
User prompt
queue consecutive applyOperation call until previous ones are done
Code edit (1 edits merged)
Please save this source code
Code edit (20 edits merged)
Please save this source code
User prompt
update ``` for (var row = 0; row < self.levelData.tiles.length; row++) { var tempMaxCols = Math.max(maxCols, self.levelData.tiles[row].length); log("tempMaxCols=", tempMaxCols, maxCols); if (tempMaxCols > maxCols) { maxCols = tempMaxCols; maxColsRowIndex = row; } for (var col = 0; col < self.levelData.tiles[row].length; col++) { var value = self.levelData.tiles[row][col]; if (value !== "") { var tile = new HexTile(value, col, row, self.levelData); self.board.push(tile); boardContainer.addChild(tile); self.activeTileCount++; // Increment active tile count } } } ``` to make maxCol only count from the first tile with a value to the last with a value on each row . ie: a row with ["", "", "", "", "", "", "" ] should count as 0 ie: a row with ["", "", "", "", 3, , 3, 3] should count as 3 ie: a row with [3, "", "", "", "" , "", 3] should count as 7 ie: a row with [3, "", 1, 1, 1, "", 3] should count as 7
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught Error: [object Object]addChildAt: The index undefined supplied is out of bounds 64' in or related to this line: 'boardContainer.addChildAt(tile, tile.previousZIndex); // Restore tile's original z-index' Line Number: 1117
User prompt
Please fix the bug: 'Uncaught Error: [object Object]addChildAt: The index undefined supplied is out of bounds 9' in or related to this line: 'boardContainer.addChildAt(tile, tile.previousZIndex); // Restore tile's original z-index' Line Number: 1115
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -549,8 +549,9 @@
self.activeTileCount++; // Increment active tile count
}
}
}
+ log("createBoard Found maxTilesInRow: ", maxTilesInRow);
self.levelBoardOffsetX = maxTilesInRow * 100; // largest row * 100
self.levelBoardOffsetY = self.levelData.tiles.length * 30; // nb rows * 30
for (var i = 0; i < self.board.length; i++) {
var tile = self.board[i];
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