Handbook
Glossary
until-window-should-close-with-live-coding ( game-loop-quot -- )
Vocabulary
raylib
.
live-coding
Inputs
game-loop-quot
main game loop that must recurse until the game is closed
Outputs
None
Word description
Combines both an unending iteration of the supplised game loop quotation as well as inserts pauses for
lc-sleep-duration
giving control to the Listener.
Definition
USING:
kernel
raylib.live-coding.private
;
IN:
raylib.live-coding
:
until-window-should-close-with-live-coding
( game-loop-quot -- )
[
with-rescue-to-listener
lc-enabled?
[
yield-to-listener
]
when
window-should-close?
not
]
curry
loop
;
inline