===================================================================
--- original.js
+++ change.js
@@ -31,9 +31,9 @@
}
};
var autoClickerText = new Text2('Auto Clicker: $' + self.cost, {
size: 100,
- fill: "#ffffff"
+ fill: 0xFFFFFF
});
autoClickerText.anchor.set(0.5, 0);
self.addChild(autoClickerText);
});
@@ -77,9 +77,9 @@
anchorY: 0.5
});
var resetButtonText = new Text2('Reset Game', {
size: 100,
- fill: "#ffffff"
+ fill: 0xFFFFFF
});
resetButtonText.anchor.set(0.5, 0);
self.addChild(resetButtonText);
self.on('down', function () {
@@ -93,9 +93,9 @@
var Score = Container.expand(function () {
var self = Container.call(this);
var scoreText = new Text2('0', {
size: 150,
- fill: "#ffffff"
+ fill: 0xFFFFFF
});
scoreText.anchor.set(0.5, 0);
self.addChild(scoreText);
self.updateScore = function (newScore) {
@@ -118,9 +118,9 @@
self.multiplier += 1; // Increase the multiplier by 1
};
var upgradeText = new Text2('Upgrade: $' + self.cost, {
size: 100,
- fill: "#ffffff"
+ fill: 0xFFFFFF
});
upgradeText.anchor.set(0.5, 0);
self.addChild(upgradeText);
self.updateUpgradeText = function () {
@@ -143,9 +143,9 @@
/****
* Initialize Game
****/
var game = new LK.Game({
- backgroundColor: 0x000000 // Init game with black background
+ backgroundColor: 0x0000FF // Init game with blue background
});
/****
* Game Code