Press the [SPACE] key to see gravity in action.
Many of my students wanted to know how to make their characters jump like Mario in the classic NES games. This project was created to demonstrate a simple way to simulate gravity. Feel free to use this code as a foundation to build your own awesome game.