Flowchart of main line throught an arcade game. Drawn when I was a teenager.
Init Game
Score = 0
Level = 1
Lives = 3
Bombs = 3
Init Level
Clear screen
Reset bonus
Display stats
Big text “Scene XXX”
Create maze
Display maze
Init Life
Reset all sprites to initial positions
Decrement lives
Play Game
Move sprites
Detect collisions
Every second, decrement bonus
End Scene
Big text “Well Done”
Add bonus to score
End Life
Termination animation
End Game
Big text “Game Over”
Update hiscores
thx 🙂