User prompt
Add a score to the game
User prompt
Make background in tile have alpha 0
User prompt
Only set type in cell to a random value if passed type is undefined
User prompt
For tile type only default to random if parsed type is undefined
User prompt
First check if any tiles are moving before calling game over
User prompt
Rename isAnyTileMoving to is any row moving. Also update any reference
User prompt
Fix Bug: 'ReferenceError: Can't find variable: isAnyTileMoving' in this line: 'if (!isAnyTileMoving) {' Line Number: 370
User prompt
Fix Bug: 'ReferenceError: Can't find variable: isAnyTileMoving' in this line: 'if (!isAnyTileMoving) {' Line Number: 370
User prompt
Rename isAnyTileMoving to is any row moving
User prompt
Before calling game over, don’t call it if any tile is currently moving
User prompt
At the bottom of tick In tick if nothing is moving, call can place any tile, if false show game over
User prompt
Set tile background alpha to 0
User prompt
Before calling game over, first test if any tiles are moving
User prompt
In tick if nothing is moving, call can place any tile, if false show game over
User prompt
Increase cell label by 3x and make it black
User prompt
In the method that finds neighbors do not allow invisible cells to be matched
User prompt
When setting grid node visible, if the node was invisible before push it to toTest
User prompt
Set label x,y to zero
User prompt
On cell add a label that shows the type
User prompt
only consider grid cells in isAnyTileMoving
User prompt
if allNotMovingis true, set visible on all grid elements to true
User prompt
only run the allNotMoving code if toDelete length is larger than zero
User prompt
in the toDelete code, just call cell.destory remove the code related to the current grid
Code edit (1 edits merged)
Please save this source code
User prompt
when creating a new element in the neighborhood code, set visible on the new cell to false
===================================================================
--- original.js
+++ change.js
@@ -365,9 +365,9 @@
if (bottomTiles[i] !== draggedTile) {
bottomTiles[i].tick();
}
}
- var isAnyTileMoving = grid.some(row => row.some(cell => cell && cell.isMoving));
+ var isAnyRowMoving = grid.some(row => row.some(cell => cell && cell.isMoving));
if (!isAnyTileMoving) {
while (self.toTest.length > 0) {
var cell = self.toTest.shift();
var colRow = self.findCellColRow(cell);
@@ -392,9 +392,9 @@
gridContainer.addChild(newCell);
}
}
}
- if (!self.canPlaceAnyTile() && !isAnyTileMoving) {
+ if (!self.canPlaceAnyTile()) {
LK.showGameOver();
}
}
});
Simple White square round corners. Vector. No details. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Hour hand. Vector. Simple Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Simple Awesome background for clock chain reaction game. Vector high contrast.