Code edit (4 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: crosshair.update is not a function' in this line: 'crosshair.update();' Line Number: 377
Code edit (2 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: navigation.setCurrent is not a function' in this line: 'navigation.setCurrent(currentPlanet);' Line Number: 359
User prompt
Fix Bug: 'ReferenceError: centerX is not defined' in this line: 'arrows[i].x = centerX + arrowOffsets[i].x * distance;' Line Number: 225
Code edit (6 edits merged)
Please save this source code
User prompt
Fix Bug: 'TypeError: moneyDisplay is undefined' in this line: 'moneyDisplay.setAmount(money -= button.cost);' Line Number: 275
Code edit (2 edits merged)
Please save this source code
User prompt
add a new CurrencyText in the top-center of the screen, with the settings of: {x:20, y: 100, anchor:{x:0}}, displaying the money variable
Code edit (3 edits merged)
Please save this source code
User prompt
add a Crosshair class that's comprised of 4 arrow assets pointing towards the center. There should also be a function to adjust the distance all the arrows are from the center
Code edit (1 edits merged)
Please save this source code
Code edit (4 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: setText is not defined' in this line: 'self.setText = setText;' Line Number: 21
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: buttonText is not defined' in this line: 'currencySymbol.x = -buttonText.width / 2 - currencySymbol.width / 2;' Line Number: 88
User prompt
Create a CurrencyText class
Code edit (1 edits merged)
Please save this source code
User prompt
Add a currency symbol asset to the left of the buttonText. Similarly it should be destroyed when destroying the buttonText
Code edit (5 edits merged)
Please save this source code
User prompt
tint NavigationButtons red. When the unlock function is called, reset the tint and destroy the buttonText
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: b is not defined' in this line: 'b;' Line Number: 142
Code edit (1 edits merged)
Please save this source code
User prompt
Convert the buttonContainer into a class called NavigationInterface
===================================================================
--- original.js
+++ change.js
@@ -340,10 +340,10 @@
var TEXT_DEFAULT_FILL = '#FFFFFF';
var TEXT_DEFAULT_BORDER = '#000000';
var CURRENCY_DEFAULT_MARGIN = 0;
var CROSSHAIR_DIST = 40;
-var CROSSHAIR_VARIANCE = 20;
-var CROSSHAIR_PERIOD = 1 * GAME_TICKS / Math.PI;
+var CROSSHAIR_VARIANCE = 15;
+var CROSSHAIR_PERIOD = 2 * GAME_TICKS / Math.PI;
var NAVIGATION = [{
cost: 0,
planet: 'planetGrey',
description: 'Small moon, with no special bonuses.'
pixel art of a tiny planet. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a planet. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of an alien currency symbol. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a planet made of gold ore. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
plain black background with stars. 2d repeating Texture.
pixel art of a asteroid. Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a cute alien farmer, side view. Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a rocky explosion.. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art flame particle. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a large white, empty, rectangular, speech bubble. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
pixel art of a red chevron. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.
Pixel art of yellow grapes. Single Game Texture. In-Game asset. 2d. Blank background. High contrast. No shadows.