User prompt
remove animation from game title
User prompt
touch to strart should also have effects like title
Code edit (2 edits merged)
Please save this source code
User prompt
game title should very slightly increase and decrase its size
Code edit (1 edits merged)
Please save this source code
User prompt
Game title should slightly increase and decrease the size and slightly floar
User prompt
when a pair of tiles has already been guessed do not play yes sound, play touch
User prompt
play no when a life is lost
User prompt
play no when miss a match
User prompt
play no sound when a correct match is selected
User prompt
play yes sound when a match is made
User prompt
use tile sound when a tile is turned
User prompt
play touch sound when player touches the screen while countdown
User prompt
use start sound when level changes
User prompt
When player touches ro start for the first time, play start sound
User prompt
Play start when player toches start
User prompt
Play backgroundmusic on game load
User prompt
Migrate to the latest version of LK
User prompt
Make sure numbers are alwatlys displayed after counter finishes in new level
===================================================================
--- original.js
+++ change.js
@@ -77,26 +77,8 @@
gameTitle.anchor.set(0.5, 0);
gameTitle.x = 0; // Center horizontally
gameTitle.y = 100; // Move down 100 pixels
LK.gui.top.addChild(gameTitle);
-// Add floating and size animation to game title
-var floatDirection = 1;
-var floatSpeed = 0.05;
-var floatRange = 5;
-var sizeDirection = 1;
-var sizeSpeed = 0.0005;
-var sizeRange = 0.02;
-LK.on('tick', function () {
- gameTitle.y += floatSpeed * floatDirection;
- if (gameTitle.y >= 100 + floatRange || gameTitle.y <= 100 - floatRange) {
- floatDirection *= -1;
- }
- gameTitle.scale.x += sizeSpeed * sizeDirection;
- gameTitle.scale.y += sizeSpeed * sizeDirection;
- if (gameTitle.scale.x >= 1 + sizeRange || gameTitle.scale.x <= 1 - sizeRange) {
- sizeDirection *= -1;
- }
-});
// Play background music on game load
LK.playMusic('Backgroundmusic');
// Blinking 'Touch to start' text
var touchToStartText = new Text2('Touch to start', {