|
Initialization:
|
-
Allocate Memory
-
Load Files and data
-
Build Tables
|
Game Loop
|
-
Get Player Input
-
Game Logic: AI, Collision Detection, Physics
-
Render Next Frame to Buffer
-
Draw Buffer Content on Screen
-
Play Sounds (in parallel, sync. thread)
-
Check Memory and CPU to
Sync. Game Frame Rate,
(not to slow or fast)
|
Menu Loop
|
-
Get Player Input
-
Logic
-
Render 2D
-
Change Settings
|
Shutdown
|
-
Cleanup
-
Save State and Score
-
Free Memory
-
Close Files
-
Exit to OS
|