User prompt
delete the destroy method on PointsText
User prompt
add a tick method to the PointsText class that fades out the text
User prompt
Rather than just creating a pointsText element, create a class for pointsText, with a text2 element inside of it
User prompt
Fix Bug: 'TypeError: textGraphics.setText is not a function. (In 'textGraphics.setText(text)', 'textGraphics.setText' is undefined)' in this line: 'textGraphics.setText(text);' Line Number: 8
User prompt
remove the startTimeout method on point text and don't call it
User prompt
Rather than just creating a pointsText element, create a class for pointsTexts
User prompt
Fix Bug: 'ReferenceError: Can't find variable: pointsText' in this line: 'if (pointsText && pointsText.fadeOut) {' Line Number: 199
User prompt
animate pointsText out
User prompt
where you set scoreMultiplier to 0 set it to -1 instead
User prompt
where you set scoreMultiplier to 0 set it to -1 instead
Code edit (1 edits merged)
Please save this source code
User prompt
remove the code that modified score multiplier in down
User prompt
move the code that updates self.score to before the connectedNeighbors.forEach statement
User prompt
in updateScoreMultiplier multiply multiplier by 3 inside the max statement
User prompt
when calculating pointsEarned multiply scoreMultiplier by 3 inside the max statement
User prompt
update score label text method such that it renders a x rather than +
User prompt
when calculating pointsEarned multiple with max of scoreMultiplier or 1
User prompt
In updateScoreMultiplier set the min value you can show to 1
User prompt
Where you currently set scoreMultiplier to 1 set it to zero
User prompt
Where you currently set scoreMultiplier to 1 set it to zero
User prompt
in processMergeAndGameOver, inside the self.mergeMode add 1 to scoreMultiplier and update label
User prompt
remove the code in mergeConnectedNeighbors that increases score multiplier
User prompt
remove the code in mergeConnectedNeighbors that updates score multiplier
User prompt
in processMergeAndGameOver if self.mergeMode is false, set score multiplier to 1 and update updateScoreMultiplier. do this after the self.mergeMode if
User prompt
in processMergeAndGameOver if self.mergeMode is false, set score multiplier to 1 and update updateScoreMultiplier. Do this before isAnyTileMoving is defined
===================================================================
--- original.js
+++ change.js
@@ -30,12 +30,8 @@
self.alpha = 0;
self.destroy();
}
};
- self.destroy = function () {
- text.destroy();
- Container.prototype.destroy.call(self);
- };
return self;
});
var ClockIndicator = Container.expand(function () {
var self = Container.call(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.