Module room4doom::d_main

source ·
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§

  • d_display 🔒
    Does a bunch of stuff in Doom… pixels is the buffer that is always drawn, so drawing in to pixels2 then flipping ensures the buffer is drawn. But if we draw in to pixels2 and don’t flip, we can do the screen-melt by progressively drawing from pixels2 to pixels.
  • Never returns until game.running is set to false
  • draw_title 🔒