|
|
# Main loop
|
|
|
|
|
|
After the game has finished loading, it will run the main loop until the player quits. The most important parts of the loop are "game logic" and graphics. Game logic includes all game mechanics like physics, enemies, etc. Game logic happens in steps that are called tics. 35 (=TICRATE) tics happen in one second. Normally the graphics on the screen are updated after running one tic. (in D_Display) However, if the game detects that it is running slowly, multiple tics can be run without updating the graphics between them.
|
|
|
|
|
|
# Game logic
|
... | ... | |