User prompt
Please fix the bug: 'Uncaught ReferenceError: levelText is not defined' in or related to this line: 'levelText.setText('Level: ' + self.currentLevel + ' Solved!');' Line Number: 592
User prompt
Please fix the bug: 'Uncaught TypeError: Set is not a constructor' in or related to this line: 'var visited = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Set();' Line Number: 608
User prompt
Please fix the bug: 'Uncaught TypeError: Set is not a constructor' in or related to this line: 'var visited = new Set();' Line Number: 424
User prompt
implement checkWinCondition
User prompt
ok, now after each player move, check if puzzle is solved. if so add "Solved !" in levelText
User prompt
add a text under the board to show current level number
Code edit (14 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'undefined')' in or related to this line: 'var baseTileAsset = type == 'start' || type == 'end' || self.levelConfigs[self.currentLevel] && self.levelConfigs[self.currentLevel].fixedTiles && self.levelConfigs[self.currentLevel].fixedTiles.includes(self.position.x + ',' + self.position.y) ? 'baseTile' : 'baseMobileTile';' Line Number: 40
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'undefined')' in or related to this line: 'var baseTileAsset = type == 'start' || type == 'end' || self.levelConfigs[self.currentLevel] && self.levelConfigs[self.currentLevel].fixedTiles.includes(self.position.x + ',' + self.position.y) ? 'baseTile' : 'baseMobileTile';' Line Number: 40
User prompt
Please fix the bug: 'Uncaught TypeError: Cannot read properties of undefined (reading 'undefined')' in or related to this line: 'var baseTileAsset = type == 'start' || type == 'end' || self.levelConfigs[self.currentLevel].fixedTiles.includes(self.position.x + ',' + self.position.y) ? 'baseTile' : 'baseMobileTile';' Line Number: 40
User prompt
update line `var baseTileAsset = type == 'start' || type == 'end' || type == 'fixed' ? 'baseTile' : 'baseMobileTile';` to use fixedTiles
Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
Code edit (9 edits merged)
Please save this source code
User prompt
make water height anim faster
Code edit (4 edits merged)
Please save this source code
User prompt
make height anim faster
User prompt
change height sin anim into a linear anim
Code edit (1 edits merged)
Please save this source code
User prompt
along with tint anim add a height anim
Code edit (1 edits merged)
Please save this source code
Code edit (5 edits merged)
Please save this source code
User prompt
change the sin anim by something more linear
Code edit (1 edits merged)
Please save this source code
User prompt
change alpha animation by a tint animation from black to white
===================================================================
--- original.js
+++ change.js
@@ -122,10 +122,10 @@
// Water
self.water1 = self.attachAsset('waterV', {
anchorX: 0.5,
anchorY: 0,
- x: -30,
- y: -200,
+ x: -0,
+ y: -120,
blendMode: 1,
tint: self.baseTintLight
});
// self.water2 = self.attachAsset('straightPipeV', {
@@ -179,9 +179,9 @@
var tintValue = 0xFFFFFF; //LK.ticks % 0xFFFFFF; // Calculate tint value from black to white in a linear way
self.water1.tint = tintValue;
// self.water2.tint = tintValue;
// Add height animation
- var heightValue = LK.ticks % 200; // Calculate height value in a linear way
+ var heightValue = LK.ticks % 125; // Calculate height value in a linear way
self.water1.height = heightValue;
// self.water2.height = heightValue;
}
};
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