Main game loop initializes input devices and runs the game.
Namespace: (Default Namespace)Assembly: Default (in Default.exe) Version: 1.0.0.0
Syntax Remarks The general sequence of steps performed in this loop are:
- Trigger OnFrameStart.
- Check if game has been closed/quit, and exit if necessary.
- If game is inactive draw the screen as it was when it
was last active, and skip the rest of the loop.
- Trigger OnBeforeBeginScene.
- Draw the main map.
- Read players' input devices.
- Trigger OnBeforeExecuteRules.
- Execute the main map's rules.
- Trigger OnBeforeDrawOverlay.
- If an overlay map is active, draw it and execute its rules.
- Draw the current debug output if debug mode is active, and clear the debug text buffer.
- Trigger OnAfterDrawOverlay.
See Also