Frame Management¶
Manages the game frames, such as for updating animations and redrawing the screen.
Configuration¶
FRAMES_SET¶
Enables or disables the generation of periodic
FRAMES_UPDATE
and FRAMES_REDRAW
inputs to the application.
output (yes/no) FRAMES_SET
- Parameters:
yes/no
: new stateyes
: enables the generation of framesno
: disables the generation of frames
Inputs¶
FRAMES_UPDATE¶
input (integer) FRAMES_UPDATE
- Occurrences:
- on every frame, before
FRAMES_REDRAW
- on every frame, before
- Payload:
integer
: the number of milliseconds elapsed since the previous frame
FRAMES_REDRAW¶
input (none) FRAMES_REDRAW
- Occurrences:
- on every frame, after
FRAMES_UPDATE
- on every frame, after
- Payload:
none
: no payload
Before the input occurs, the screen is automatically cleared with
WINDOW_CLEAR
.