User prompt
destroy and clear the player variable on ship launch (in the launch function)
User prompt
destroy and clear the player variable on ship launch
Code edit (1 edits merged)
Please save this source code
User prompt
flip the player's graphic based on the direction it's moving
Code edit (3 edits merged)
Please save this source code
User prompt
rotate the player asset to match it's current angle
Code edit (2 edits merged)
Please save this source code
User prompt
Prevent the player from overshooting the targetAngle when moving
Code edit (2 edits merged)
Please save this source code
User prompt
in the player update method: check if the angle between the player and the targetAngle are unequal and move the player's position around the planet at a radial speed of PLAYER_SPEED until it reaches the angle
User prompt
call the player update function from the no tick callback if the player exists
User prompt
add an update method to the player, which is called every tick if the player exists
Code edit (1 edits merged)
Please save this source code
User prompt
Only perform the on down action if the square distance between the click and the planet is within the planet's radius + PLAYER_BUFFER_DIST squared
Code edit (1 edits merged)
Please save this source code
User prompt
Change the game.on down event to calculate the angle between the click and the planet's position
Code edit (1 edits merged)
Please save this source code
User prompt
Register a listener for the on down event on the stage
User prompt
Fix Bug: 'TypeError: obj is undefined' in or related to this line: 'var localPos = obj.event.getLocalPosition(self);' Line Number: 548
User prompt
Register a listener for the on down event
Code edit (1 edits merged)
Please save this source code
User prompt
Fix Bug: 'ReferenceError: PLAYER_PICK_SQR_DISTANCE is not defined' in or related to this line: 'if (sqrDistance < PLAYER_PICK_SQR_DISTANCE) {' Line Number: 621
Code edit (1 edits merged)
Please save this source code
User prompt
add an update method to fruits which checks if the square distance to the player (if the player exists) is less than a PLAYER_PICK_SQR_DISTANCE (value of 100 * 100)
User prompt
Fix Bug: 'TypeError: item.update is not a function' in or related to this line: 'if (item.update()) {' Line Number: 759
===================================================================
--- original.js
+++ change.js
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.