Drag the ship (the arrow) in the opposite direction, to launch like a slingshot. Try changing the size of the planet and see how to ship interacts! Forgot to mention this is not finished and for some reason I decided to share it and yeah... I'm planning on making this a game.
Pretty much all by me, but I did need a little help understanding atan and stuff like that.