Next: Live Reloading, Up: Utilities [Contents][Index]
(use-modules (sly utils repl))
The Sly REPL is a cooperative REPL server that is integrated into the game loop. It is the key to live coding games with Sly. To connect to the REPL server, use the Geiser extension for GNU Emacs.
Start a cooperative REPL server that listens on the given port
.
By default, this port is 37146. Additionally, a process is scheduled
to poll the REPL server upon every tick of the game loop.
The Sly REPL detects when the game loop throws an error and enters a
special loop for debugging. When in this state, game state will not
be updated or rendered. When the errors have been fixed, calling the
resume-game-loop
procedure will hand control back to the game
loop.
Abort from the error handling loop prompt and resume the game loop.