-
What is a game loop?
-The game loop is a controlled infinite loop that makes your game keep running -
What phases does a game loop normally have?
-Game loop has 3 phases and they are : initialize, update and draw. -
What happens in each phase?
- The initialize phase is used to do any necessary game setup and prepare the environment for the update and draw phases.
- The main purpose of the update phase is to prepare all objects to be drawn.
- When everything is properly updated and ready, we enter the draw phase where all this information is put on the screen.