User prompt
in GridBackgroundCell set bgCellGraphics alpha to 0.5
User prompt
in setAlphaAndTint set alpha to the alpha variable passed to the method
User prompt
in GridBackgroundCell set bgCellGraphics.alpha to .6
User prompt
in GridBackgroundCell setAlphaAndTint method set bgCellGraphics alpha to the alpha passed as a variable.
User prompt
in setAlphaAndTint set bgCellGraphics alpha to the alpha passed to the variable
User prompt
in setAlphaAndTint set bgCellGraphics alpha to the alpha passed to the variable
Code edit (1 edits merged)
Please save this source code
User prompt
Make cell fade twice as fast
User prompt
When adding elements to todelete.push, add the neighborCell to it's parent again, with addChildAt, and an index one smaller than cell
User prompt
In cell move, only have 20 steps
User prompt
Do not accelerate self.speedX and self.speedY in cell tick
Code edit (1 edits merged)
Please save this source code
User prompt
when calling move, if not instant, calculate a speed x and speed y that would move the cell to the target with a fixed amount of steps
User prompt
in cell tick, Reverte the if on allNotMoving
Code edit (1 edits merged)
Please save this source code
User prompt
in cell tick, do not run the hue and rotation update code if allNotMoving is true
Code edit (3 edits merged)
Please save this source code
User prompt
in game tick, pass the allNotMoving variable to cell tick
User prompt
remove the isAnyRowMoving line in game tick
User prompt
remove the isAnyRowMoving line
User prompt
define the allNotMoving in tick, outside the toDelete length check. We want to use this variable outside this if statement
Code edit (1 edits merged)
Please save this source code
User prompt
in cell when calling move set isMoving to true
Code edit (1 edits merged)
Please save this source code
User prompt
pass allNotMoving to tick on grid elements
===================================================================
--- original.js
+++ change.js
@@ -81,9 +81,9 @@
});
var GridBackgroundCell = Container.expand(function () {
var self = Container.call(this);
var bgCellGraphics = self.createAsset('gridCell', 'Background Grid Cell', 0.5, 0.5);
- bgCellGraphics.alpha = alpha;
+ bgCellGraphics.alpha = 0.6;
bgCellGraphics.x += 10;
bgCellGraphics.y += 15;
self.setAlphaAndTint = function (alpha, tint) {
bgCellGraphics.alpha = 0.5;
@@ -159,9 +159,9 @@
}
}
var alphaDifference = self.targetAlpha - self.alpha;
if (Math.abs(alphaDifference) > 0.01) {
- self.alpha += alphaDifference * 0.1;
+ self.alpha += alphaDifference * 0.05;
} else {
self.alpha = self.targetAlpha;
}
var acceleration = 1;
@@ -272,10 +272,8 @@
grid[neighborColRow.col][neighborColRow.row] = null;
neighborCell.isMoving = true;
toDelete.push(neighborCell);
neighborCell.move(cell.x, cell.y);
- var cellIndex = gridContainer.getChildIndex(cell);
- gridContainer.addChildAt(neighborCell, cellIndex - 1);
self.score += self.scoreMultiplier;
scoreTxt.setText(self.score.toString());
}
}, this);
Simple White square round corners. Vector. No details. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Background for relaxing puzzle game. Pastel colors, flat shaded, vector art. Flowers. Blocks. Relaxing. Clouds Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Simple White square round corners. Vector. No details. Single Game Texture. In-Game asset. 2d. White background. High contrast. No shadows.
Simple black arrow pointing up. Mouse cursor like.