-
What is a game loop?
The game loop is the heart of the game, in a controlled infinite loop -
What phases does a game loop normally have?
The game loop generally contains the initialization, update, and draw phases
- What happens in each phase?
The initialization phase is used to do any necessary setup; create entities, menus, detect hardware etc. The Update phase prepares all objects to be drawn and contains the physics code. The Draw phase is where all the prepared data is arranged and drawn on the screen displayed to the user.