User prompt
storage poins should be loaded as soon as game starts ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'setText')' in or related to this line: 'scoreTxt.setText('$' + score.toString());' Line Number: 381
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'hud.addChild(scoreTxt);' Line Number: 387
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'hud.addChild(scoreTxt);' Line Number: 387
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'hud.addChild(scoreTxt);' Line Number: 387
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'hud.addChild(scoreTxt);' Line Number: 387
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'setText')' in or related to this line: 'levelTxt.setText('Level: ' + level);' Line Number: 390
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'hud.addChild(levelTxt);' Line Number: 397
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'hud.addChild(levelTxt);' Line Number: 397
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'hud.addChild(levelTxt);' Line Number: 397
User prompt
Please fix the bug: 'Cannot read properties of undefined (reading 'addChild')' in or related to this line: 'hud.addChild(levelTxt);' Line Number: 397
User prompt
move in game reste button under the start button and do not hide it on game load
User prompt
unify reset buttons into the on that is below the start butotn
User prompt
remove hardcoded points for player on start, that was just for development
User prompt
save points in local storage ↪💡 Consider importing and using the following plugins: @upit/storage.v1
User prompt
blocks score should be the ammount of points it had when they were created
User prompt
remove text for reset button that is next to level
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Uncaught ReferenceError: score is not defined' in or related to this line: 'var isEnabled = (prevTier ? unlockedTiers[prevTier] : true) && score >= cost;' Line Number: 477
Code edit (1 edits merged)
Please save this source code
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'balls.push(ball);' Line Number: 789
User prompt
Please fix the bug: 'Script error.' in or related to this line: 'balls.push(ball);' Line Number: 789
User prompt
please fix issue when trying to create the first ball
User prompt
try a different way to fix the first ball onto being created an giving an error
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -325,9 +325,9 @@
splashBallCost: 100,
sniperBallCost: 150,
scatterBallCost: 125
};
-var balls = storage.balls || [];
+var balls = Array.isArray(storage.balls) ? storage.balls : [];
var bricks = [];
var brickGrid = {};
var score = storage.score || 0;
var level = storage.level || 1;