Game Development with raylib C++ — Day #3
Create a Game Loop and Game Class
What makes games different from other applications is that the game must update many times a second for as long as the program runs. This is also known as the “Game Loop”.
The game repeats the following steps:
- Process any inputs
- Update the game world
- Generate any outputs
In this article, we are going to create a Game Class that will encapsulate the logic for this game loop. We…