Starter code for 2D games.