A game has 3 main things it does endlessly while youbare playing:
1. Update all the things
2. Apply physics resulting from those changes
3. Draw the updates state of the game to the screen
These things happen in this order but at different intervals. These intervals vary depending on the details of the game, but they are happening many many times per second.
A simple example:
Player pushes ‘Right’ on their controller. In step 1 Mawio moves to the right.and bumps onto a Woomba.
In step 2, Mawios collision with the Woomba is processed and the Woomba sent flying accordingly.
Step 3 you see the flying Goomba on your screen.
Latest Answers