Handbook
Glossary
game-loop-error ( error game-loop -- )
Game loops
Prev:
stop-loop ( loop -- )
Vocabulary
game
.
loop
Inputs
error
an error object
game-loop
a
game-loop
Outputs
None
Word description
If an uncaught error is thrown from inside a game loop delegate's
tick*
or
draw*
, the game loop will catch the error, stop the game loop, and rethrow an error of this class.
Definition
USING:
kernel
;
IN:
game.loop
:
game-loop-error
( error game-loop -- )
[
nip
stop-loop
]
[
\
game-loop-error-state
boa
?ui-error
]
2bi
;