Code edit (1 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
User prompt
in self.updateCornerPipeThirdPhase add logs for self.waterH x, y and dir
User prompt
add plenty of logs in updateCornerPipeFirstPhase and updateCornerPipeThirdPhase
Code edit (8 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: Cannot read properties of undefined (reading '0')' in or related to this line: 'var tileStr = level[row][col];' Line Number: 1149
Code edit (1 edits merged)
Please save this source code
User prompt
in flower class, make size random from 100% to 100% + sizeRatioRange %
Code edit (1 edits merged)
Please save this source code
User prompt
in flower class make position random around x,y within positionOffset range
User prompt
in Flower class, make assetId random from 1 to maxIndex (keep prefix 'flower')
Code edit (5 edits merged)
Please save this source code
User prompt
when spawning flowers, store them in flowers global array; then in puzzleManager reset remove them all
Code edit (2 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: currentLevel is not defined' in or related to this line: 'var flower = new Flower(currentLevel, x, y);' Line Number: 1682
User prompt
When Spawn a Flower in each grid cell, don't only spawn in cells with tiles but in all cells by sending grid cell's x,y; not tile's x,y
Code edit (9 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: LK.assetExists is not a function' in or related to this line: 'if (!LK.assetExists(assetId)) {' Line Number: 44
User prompt
in grassAnimation, spawn a Flower in a each grid cell
User prompt
create a Flower class that takes an index and x,y and then spawns a `"flower"+index` asset if it exists else "flower1"
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Timeout.tick error: this.startWaterFlow is not a function' in or related to this line: 'this.startWaterFlow();' Line Number: 1440
Code edit (2 edits merged)
Please save this source code
User prompt
add a new global tapOffset = 50; Then In selectTile, only when no tile is found, search again nearby tiles by using the tapOffset around the actual x,y
Code edit (2 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -834,15 +834,19 @@
}
};
self.updateCornerPipeThirdPhase = function (progress, thirdSize) {
if (self.waterH) {
- log("updateCornerPipeThirdPhase: Making waterH visible. Current progress:", progress, "Third size:", thirdSize);
+ log("updateCornerPipeThirdPhase: Making waterH visible. Current progress:", progress, "Third size:", thirdSize, " Tile Rot=", self.pipeContainer.rotation);
self.waterH.visible = true;
self.waterH.width = progress - thirdSize * 2;
log("updateCornerPipeThirdPhase: Updated waterH width to:", self.waterH.width);
log("updateCornerPipeThirdPhase: waterH position x:", self.waterH.x, "y:", self.waterH.y, "dir:", self.waterH.dir);
- self.waterH.rotation = self.pipeContainer.rotation ? self.pipeContainer.rotation : 3 * Math.PI / 2;
- log("updateCornerPipeThirdPhase: Set waterH rotation to:", self.waterH.rotation);
+ //self.waterH.rotation = self.pipeContainer.rotation ? self.pipeContainer.rotation : 3 * Math.PI / 2;
+ if (Math.abs(2 * Math.PI + self.pipeContainer.rotation - Math.PI) % (2 * Math.PI) < 0.1 || Math.abs(2 * Math.PI + self.pipeContainer.rotation - 3 * Math.PI / 2) % (2 * Math.PI) < 0.1) {
+ self.waterH.rotation = (self.pipeContainer.rotation + Math.PI) % (2 * Math.PI);
+ self.waterH.tint = 0xFF0000;
+ }
+ log("updateCornerPipeThirdPhase: waterH rotation is:", self.waterH.rotation);
}
};
self.update = function () {
if (self.flow) {
@@ -2124,12 +2128,14 @@
tile.updatePosition(row, col);
return tile;
}
var levelConfigs = {
- 1: [["M-C-3", "F-C-2", "", ""], ["", "F-E-2", "", ""], ["", "", "", "F-V-0"], ["M-V-0", "M-H-0", "", "F-S-2"]],
- // 3 debug
+ 1: [["", "F-C-2", "M-H-0", "M-C-3"], ["", "F-E-2", "M-V-0", ""], ["", "", "", "F-V-0"], ["", "", "", "F-S-2"]],
+ // Level 1
11: [["F-S-0", "", "", ""], ["F-V-0", "", "", ""], ["F-V-0", "", "M-H-0", ""], ["F-C-1", "F-H-0", "", "F-E-1"]],
- // 1 Debug
+ // Level 2
2: [["", "M-V-0", "F-E-0", ""], ["", "M-C-0", "F-V-0", ""], ["", "", "", ""], ["F-S-3", "F-H-0", "", ""]],
+ // Level 3
3: [["M-C-3", "F-C-2", "", ""], ["", "F-E-2", "", ""], ["", "", "", "F-V-0"], ["M-V-0", "M-H-0", "", "F-S-2"]],
+ // Level 4
4: [["M-C-3", "F-C-2", "", ""], ["", "F-E-2", "", ""], ["", "", "", "F-V-0"], ["M-V-0", "M-H-0", "", "F-S-2"]]
};
\ No newline at end of file
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