Code edit (1 edits merged)
Please save this source code
User prompt
store the reached level and use the stored value at game start. ↪💡 Consider importing and using the following plugins: @upit/storage.v1
Code edit (4 edits merged)
Please save this source code
User prompt
in handlePostExplosion, if no tap after 7 seconds, auto tap (maybe handler should be nulled)
Code edit (6 edits merged)
Please save this source code
User prompt
after that: ``` vial.liquids.forEach(function (liquid, index) { explodeAnim(vial.x, vial.y, colorList[liquid.color]); var brokenVial = LK.getAsset('brokenVials', { anchorX: 0.5, anchorY: 0, x: vial.x, y: vial.baseY, // Adjust y position to match the vial's base y position rotation: Math.random() * Math.PI * 2 // Add random rotation }); brokenVialsContainer.addChild(brokenVial); vial.alpha = 0; // Hide the whole vial }); ``` set vial.alpha=0; for vials that don't have any liquid
Code edit (1 edits merged)
Please save this source code
User prompt
use a temporary board to Invert fade in and fade out when changing the board asset
Code edit (1 edits merged)
Please save this source code
User prompt
when Change the board asset depending on the current level, use 2 boards, make the old one fade out and the new one fade in for a smoother transition
Code edit (2 edits merged)
Please save this source code
User prompt
in intro, wait for a tap before showRules() call
Code edit (1 edits merged)
Please save this source code
User prompt
in intro function, add 1 curtain assets on the left and one on the right, place them on the screen, vertically centered, then animate them sliding OUT by their side, then call showRules()
User prompt
in intro function, add 2 curtain assets on the left and one on the right, then animate them sliding out by their side, then call showRules()
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -306,9 +306,9 @@
if (puzzleManager.checkWinCondition()) {
gameWin = true;
// Level up and initialize a new round
currentLevel++;
- storage.level = currentLevel; // Store the current level
+ storage.level = Math.min(maxLevels, currentLevel); // Store the current level
if (currentLevel <= maxLevels) {
LK.getSound('goodJob').play(); // Play 'goodJob' sound
previousRoundTimeLeft = timeLeft;
// Level up and initialize a new round
@@ -1187,8 +1187,9 @@
var puzzleManager;
var rulesContainer;
var currentLevel = storage.level || 1; // Retrieve stored level or default to level 1
var maxLevels = 10;
+currentLevel = Math.min(maxLevels, currentLevel);
var maxPerLine = 5;
var score = 0;
var preStarted = false;
var showedRules = false;
Basic white Restart icon (rounded arrow). UI
Une classe d’une école de sorcière sans les élèves.
un sablier de sorcière.
a bubble.
exploded broken glass
Yound generously beautifull teacher witch smiling, with glasses, a black witch hat, holding a little brown book in her hands and looking at the camera. wearing light black clothes. Torso head and hat should appear.
tap
Sound effect
drop
Sound effect
reset
Sound effect
wrong
Sound effect
yes
Sound effect
goodJob
Sound effect
pouring
Sound effect
welcome
Sound effect
rememberTheRules
Sound effect
letsgo
Sound effect
hurryUp
Sound effect
boom
Sound effect
tryAgain
Sound effect
rainbowBoom
Sound effect
youDidIt
Sound effect
letmetry
Sound effect
rainbowMix
Sound effect
thankYou1
Sound effect
thankYou2
Sound effect
thankYou3
Sound effect
thankYou4
Sound effect
bonusTime
Sound effect