Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: isEnabled is not defined' in or related to this line: 'if (isEnabled) {' Line Number: 985
Code edit (5 edits merged)
Please save this source code
User prompt
in handlePlayingStateUp, find a way to exit the `puzzleManager.board.forEach` loop when operation is applied to a tile because `return`doesn't seem to work
Code edit (10 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of null (reading 'type')' in or related to this line: 'var newValue = Math.max(0, currentTile.value + parseInt(operation.type));' Line Number: 1541
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(dragNode, {' Line Number: 2170 โช๐ก Consider importing and using the following plugins: @upit/tween.v1, @upit/storage.v1, @upit/tween.v1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(dragNode, {' Line Number: 2170 โช๐ก Consider importing and using the following plugins: @upit/tween.v1, @upit/storage.v1, @upit/tween.v1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(dragNode, {' Line Number: 2170 โช๐ก Consider importing and using the following plugins: @upit/tween.v1, @upit/storage.v1, @upit/tween.v1
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(dragNode, {' Line Number: 2170 โช๐ก Consider importing and using the following plugins: @upit/tween.v1, @upit/storage.v1, @upit/tween.v1
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(dragNode, {' Line Number: 2173 โช๐ก Consider importing and using the following plugins: @upit/tween.v1, @upit/storage.v1, @upit/tween.v1
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(dragNode, {' Line Number: 2173 โช๐ก Consider importing and using the following plugins: @upit/tween.v1, @upit/storage.v1, @upit/tween.v1
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(dragNode, {' Line Number: 2174 โช๐ก Consider importing and using the following plugins: @upit/tween.v1, @upit/storage.v1, @upit/tween.v1
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'tween(dragNode, {' Line Number: 2174 โช๐ก Consider importing and using the following plugins: @upit/tween.v1, @upit/storage.v1, @upit/tween.v1
Code edit (15 edits merged)
Please save this source code
Code edit (25 edits merged)
Please save this source code
Code edit (25 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: Error: Invalid color format. Expected 0xRRGGBB format, received: undefined' in or related to this line: 'tween(tileGraphics, {' Line Number: 358 โช๐ก Consider importing and using the following plugins: @upit/tween.v1, @upit/storage.v1, @upit/tween.v1
Code edit (6 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -959,8 +959,9 @@
duration: 500,
easing: tween.easeOut
});
if (self.isEnabled) {
+ // TODO : Remplacer par puzzel.made move!!!!!!!!
self.enable();
}
};
self.deactivate = function () {
@@ -1466,8 +1467,9 @@
}
}
};
self.applyOperation = function (operation, tile) {
+ log("applyOperation... isAnimating:", self.isAnimating);
if (self.isAnimating) {
return false; // Exit if an operation is already in progress
}
self.isAnimating = true; // Set animating flag
@@ -1481,11 +1483,12 @@
}
}
self.checkWinCondition();
LK.setTimeout(function () {
- self.isAnimating = false; // Reset animating flag after operation is done
self.updateOperations();
self.fillTilesNeighbors();
+ log("applyOperation... Ok applied done:");
+ self.isAnimating = false; // Reset animating flag after operation is done
}, 600);
return true;
};
self.propagateOperation = function (operation, startTile) {
@@ -2089,8 +2092,10 @@
if (isPointInsideTile(x, y, tile)) {
log("Operation button is above tile at position:", tile.x, tile.y); // Log when operation button is above a tile
var applied = puzzleManager.applyOperation(dragNode, tile);
if (!applied) {
+ log("Operation NOT applied. Cancel");
+ // Exit from loop
return;
}
tileFound = true;
if (typeof tile.previousZIndex !== 'undefined') {
@@ -2121,8 +2126,10 @@
if (puzzleManager.currentLevel == 1 && gameHints.hasShowHint == 2) {
LK.clearInterval(showHintsInterval);
gameHints.removeHint();
}
+ // Exit from loop
+ return;
} else {
log("Operation button is NOT above tile at position:", tile.x, tile.y); // Log when operation button is not above a tile
}
});
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