arrow keys to move Z or up to jump X to shoot an orbiting laser C to shoot a straight laser The art assets are all placeholders, I promise
The gravity is calculated by the gravity sprite. The gravity sprite will switch to the circle sprite and incrementally increase its size until it touches the planet. at this point it will switch to the line sprite and rotate until it touches the planet again. Then it will calculate gravity based on its direction. This effectively draws the shortest possible line between the player and the planet, and calculates the gravity that way, almost exactly like super Mario galaxy does it.