Code edit (4 edits merged)
Please save this source code
User prompt
Please fix the bug: 'GAME_WIDTH is not defined' in or related to this line: 'levelTxt.x = GAME_WIDTH / 2 - levelTxt.width / 2;' Line Number: 54
User prompt
Please fix the bug: 'BALL_COST is not defined' in or related to this line: 'var normalCostText = new Text2(BALL_COST.toString(), {' Line Number: 71
Code edit (3 edits merged)
Please save this source code
User prompt
can we put the current level in the center of the top of the screen
User prompt
can you adjust the hud
User prompt
actually put it in the center please
User prompt
lets put level next to points and not below it
User prompt
reduce size of level and points
User prompt
recude it a littlemore
User prompt
move the huud to the top of the screen, but in the same position in the withd
User prompt
Cane we move the buttons to buy balls more to the left in the hud
User prompt
Nice, now move the points to the right of the hud
User prompt
it is offscreen now, bring it closer
User prompt
mmove points a little ot the rihg int he hud
User prompt
a little more
User prompt
more
User prompt
add 200 pixels between level and points
User prompt
keep level on its position but move points 200 pixels to the right on the hud
User prompt
add a dollar sign in front of points
User prompt
add dollar sing for all puraches price
User prompt
can you make upgrade buttons bigger, same for the text inside of them and rearaagne them
User prompt
can you add an icon to the upgrades for each ball to know which oe it is
Code edit (1 edits merged)
Please save this source code
User prompt
on new level balls and upgrades shoudl not be reseted
===================================================================
--- original.js
+++ change.js
@@ -182,10 +182,10 @@
var levelTxt = new Text2('Level: ' + level, {
size: 100,
fill: 0xFFFFFF
});
-levelTxt.anchor.set(0, 0);
-levelTxt.y = 120;
+levelTxt.anchor.set(1, 0);
+levelTxt.x = scoreTxt.width + 20;
hud.addChild(levelTxt);
var buyNormalButton = LK.getAsset('BuyBall50', {
size: 80,
fill: 0xFFFFFF,