User prompt
Add a new global AUTOWEEDER_ROTATION = 0.01 (under the existing Autoweeder settings). In the Autowheel class's update function, increase the rotation of the autoweederWheel asset by the AUTOWEEDER_ROTATION
User prompt
When creating an autoweeder, add it to the planet background instead of the planet itself
User prompt
The Autoweeder class needs an asset with id autoweederWheel
User prompt
The Autoweeder class needs an asset with id autoweederWheel, which slowly rotates at a speed of AUTOWEEDER_ROTATION = 0.01 (new global variable under "Autoweeder settings")
Code edit (2 edits merged)
Please save this source code
User prompt
In the NavigationButton's update function, in addition to updating the buttonGraphics. Rotate the planetGraphics by the amount specified in the relevant PLANET_DETAILS
Code edit (1 edits merged)
Please save this source code
User prompt
In the NavigationButton's update function, check if the buttonGraphics rotation is not equal to the targetRotation and rotate (the buttonGraphics) towards the targetRotation at a speed of NAVIGATION_ROTATE_SPEED
Code edit (1 edits merged)
Please save this source code
User prompt
Add a local targetRotation var = 0 to the NavigationButton class
Code edit (1 edits merged)
Please save this source code
User prompt
Add NAVIGATION_ROTATE_SPEED = 0.01 and NAVIGATION_ROTATE_TARGET = MATH_HALF_PI as global variables under the existing "Interface settings" heading
User prompt
Add NAVIGATION_ROTATE_SPEED = 0.01 and NAVIGATION_ROTATE_TARGET = MATH_HALF_PI as global variables under the existing Interface settings heading
User prompt
Add NAVIGATION_ROTATE_SPEED = 0.01 and NAVIGATION_ROTATE_TARGET = MATH_HALF_PI as global variables under the existing Interface settings heading
User prompt
Add NAVIGATION_ROTATE_SPEED = 0.01 and NAVIGATION_ROTATE_TARGET = MATH_HALF_PI as global variables under the existing Interface settings heading
User prompt
Add NAVIGATION_ROTATE_SPEED = 0.01 and NAVIGATION_ROTATE_TARGET = MATH_HALF_PI as global variables under Interface settings
User prompt
In the NavigationButton class: if the rotation of the buttonGraphics does not match the rotationTarget variable, then increase the rotation of the buttonGraphics in the update statement by NAVIGATION_ROTATE_SPEED, and when the unlock function is called, set the targetRotation to NAVIGATION_ROTATE_TARGET.
User prompt
Add NAVIGATION_ROTATE_SPEED = 0.01 and NAVIGATION_ROTATE_TARGET = MATH_HALF_PI as global variables under Interface settings
User prompt
Add NAVIGATION_ROTATE_SPEED and NAVIGATION_ROTATE_TARGET as global variables under Interface settings
User prompt
Add a `var targetRotation = 0` variable to the NavigationButton class
Code edit (13 edits merged)
Please save this source code
Code edit (1 edits merged)
Please save this source code
===================================================================
--- original.js
+++ change.js
@@ -160,9 +160,10 @@
}
}
}
function checkAutoweeder() {
- if (planet.autoweeder) {
+ var details = PLANET_DETAILS[planet.name];
+ if (planet.autoweeder || details.coarse || details.barren) {
return false;
}
for (var i = 0; i < 4; i++) {
var trader = traders[i];
@@ -1899,9 +1900,9 @@
var TEXT_DEFAULT_SIZE = 50; // Required by: BorderedText, SymbolText
var TEXT_DEFAULT_MARGIN = 0; // Required by: SymbolText
;
// Game constants
-var GAME_TESTING = false;
+var GAME_TESTING = true;
var GAME_TICKS = 60;
var GAME_WIDTH = 2048;
var GAME_HEIGHT = 2732;
var GAME_SPEED = 0.1;
@@ -1994,9 +1995,9 @@
var TRADER_AUTOWEEDER_TRADE = {
buyName: 'autoweeder',
buyAmount: 1,
sellName: 'credits',
- sellAmount: 125
+ sellAmount: 100
};
;
// Plant settings
var WEEDS_SPAWN_CHANCE = 0.6;
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.