Code edit (7 edits merged)
Please save this source code
User prompt
in cleanMenuState, animate the logo out to the left
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: tween is not defined' in or related to this line: 'tween(movingTile, {' Line Number: 1611 ↪💡 Consider importing and using the following plugins: @upit/tween.v1
Code edit (10 edits merged)
Please save this source code
User prompt
Ignore clicks before end of logo animation. use a global variable to track the enf of the anim
User prompt
Ignore clicks before end of logo animation
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
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
Code edit (1 edits merged)
Please save this source code
Code edit (8 edits merged)
Please save this source code
User prompt
add a random rotation to flowers when spawning
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'ReferenceError: finalScaleX is not defined' in or related to this line: 'if (flowerGraphics.scaleX < finalScaleX) {' Line Number: 62
User prompt
also when spawning Flower, make them grow in size from 0 to their final size
User prompt
when spawning Flower, make them fade in with an alpha anim from 0 to 1, (don't use tween for that)
Code edit (7 edits merged)
Please save this source code
User prompt
when spawning Flower, make them fade in with an alpha anim from 0 to 1
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
===================================================================
--- original.js
+++ change.js
@@ -1704,9 +1704,10 @@
var flowers = [];
var waterDropInterval;
var logo;
var puzzleManager;
-var isLogoAnimFinished = false;
+var isLogoAnimInFinished = false;
+var isLogoAnimOutFinished = false;
// Initialize the game
initializeGame();
/****
* Helper Functions
@@ -1969,9 +1970,9 @@
return t * (2 - t);
},
// Simple ease-out function
onFinish: function onFinish() {
- isLogoAnimFinished = true;
+ isLogoAnimInFinished = true;
}
});
}
function handleMenuLoop() {}
@@ -1987,8 +1988,9 @@
// Easing function for smooth animation
onFinish: function onFinish() {
logo.visible = false; // Hide logo after animation
game.removeChild(logo); // Remove logo from game
+ isLogoAnimOutFinished = true;
}
});
}
}
@@ -2108,8 +2110,12 @@
case GAME_STATE.MENU:
initMenuState();
break;
case GAME_STATE.NEW_ROUND:
+ if (!isLogoAnimOutFinished) {
+ LK.setTimeout(initNewRoundState, 700);
+ break;
+ }
initNewRoundState();
break;
case GAME_STATE.PLAYING:
initPlayingState();
@@ -2122,9 +2128,9 @@
/****
* Event Handlers
****/
game.down = function (x, y, obj) {
- if (!isLogoAnimFinished) {
+ if (!isLogoAnimInFinished) {
return;
}
switch (currentState) {
case GAME_STATE.MENU:
straigth zenith view square light wooden pallet. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
straigth zenith view square wooden pallet with big screws in each corner Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
simple yellow rating star. Modern video game style
tileSlide
Sound effect
levelWon
Sound effect
tileBlocked
Sound effect
fountain
Sound effect
waterInPipe
Sound effect
bgMusic
Music
logoBounce
Sound effect
levelStart
Sound effect
bgMusic2
Music
flowerPop
Sound effect
roundResult
Sound effect
gameWon
Sound effect
resetSound
Sound effect
birds
Sound effect
birds2
Sound effect
birds3
Sound effect