Expand description
The main loop driver. The primary function is the main loop which attempts to
run all tics then display the result. Handling of actual game-exe state is done
withing the Game
object.
Functions§
- Does a bunch of stuff in Doom…
pixels
is the buffer that is always drawn, so drawing in topixels2
then flipping ensures the buffer is drawn. But if we draw in topixels2
and don’t flip, we can do the screen-melt by progressively drawing frompixels2
topixels
. - Never returns until
game.running
is set to false