This is NOT a game. Just outlining how to do basic gravity using a "velocity" variable. Use left and right and then when you press up that is when the velocity kicks in.