Code edit (1 edits merged)
Please save this source code
User prompt
When start button is pressed, add teh same explosion effect as when brick is detroyed
User prompt
when start button is pressed, fade out the elelemtns leaving and fade int the ones coming in ↪💡 Consider importing and using the following plugins: @upit/tween.v1
User prompt
For text in upgrades us SPD instead of Speed, and DMG instead of Power.
User prompt
add a little more space between the upgrade buttons, but make sure they are still in the screen
User prompt
increse the size of the font on the ball powerups button
User prompt
clisck powerup button, should have 3 rows: 1: Click text 2: Power up level 3: Powe up cost
User prompt
Please fix the bug: 'Uncaught ReferenceError: labelText is not defined' in or related to this line: 'labelText.fill = isEnabled ? 0x000000 : 0x666666; // Grey out label text when disabled' Line Number: 1065
User prompt
Can we should the clickdamage belwo the cick text here: createUpgradeButton('Click', startX + 8 * (buttonWidth + spacing), 'clickCost', 'clickDamage', 25, null, null);
User prompt
OKay, so move click up50 pixxels and remove the damage next to it since we have it below now
Code edit (2 edits merged)
Please save this source code
User prompt
text inside teh clickupgrade button should be handled different that the rest of the powerups
Code edit (3 edits merged)
Please save this source code
User prompt
Update powerups cost by using this formula: baseCost * Math.pow(1.15, upgrades[upgradeKey])
Code edit (1 edits merged)
Please save this source code
User prompt
Lets change how the cost of powerups is calculated. Use this formula but make sure results have not decimals: baseCost * Math.pow(1.15, upgrades[upgradeKey])
User prompt
Make sure to also update the display of the cost in the powerup button with the new formula
User prompt
Make sure the formula is used on every new price of the powerupda
User prompt
Can we also multiply that for the level of the upgrade. Say if the button was upgraded twice, its level 2, so do, 1.5 x 2
User prompt
powerups cost should be double each time, not 1.5. Make sure to udpate the price in the button as well.
Code edit (1 edits merged)
Please save this source code
User prompt
for the cost of the upgrades, instead of just adding the original cost, make them duplicate their current cost
User prompt
increase in cost of upgrades should increase te same way the balls cost increase. make sure to update also the visual references and not only the logic
User prompt
upgrades cost are not reflecing the price they have, can you fix that
Code edit (23 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -881,9 +881,9 @@
scoreTxt.setText('$' + score.toString());
createBall(type);
ballQuantities[type] = (ballQuantities[type] || 0) + 1;
storage.ballQuantities = Object.assign({}, ballQuantities);
- upgrades[type + 'BallCost'] = Math.floor(upgrades[type + 'BallCost'] * 1.5);
+ upgrades[type + 'BallCost'] = Math.floor(upgrades[type + 'BallCost'] * 2);
storage.upgrades = Object.assign({}, upgrades);
costText.setText('$' + upgrades[type + 'BallCost']);
if (!unlockedTiers[type]) {
unlockedTiers[type] = true;
@@ -982,9 +982,9 @@
// Remove welcome message if it exists
if (welcomeText && welcomeText.parent) {
welcomeText.parent.removeChild(welcomeText);
}
- var cost = baseCost * upgrades[upgradeKey] * 1.5;
+ var cost = baseCost * upgrades[upgradeKey];
var ballType = upgradeKey.split('Speed')[0].split('Power')[0];
if (upgradeKey === 'clickDamage') {
if (score < cost) {
return;