Skip to the content.

PyGame


How does a game work?

Needs a loop that runs forever -> Only when window is closed

The 3 phases of games:

  1. Handle events
  2. Game logic
  3. Render

The “main_next.py” is an example game of flappy bird. A minimalistic version.

The logic behind flappy bird: