use mouse to control ship direction, space to thrust. friction multiplies the velocity by a value less than 1 to gradually slow the ship to a stop. there is an ai that is constantly following you. It can get a little out of hand if friction is off. probably my last scratch project