From 9224412274e1e1a31a959083bb257a7d6ab2b113 Mon Sep 17 00:00:00 2001 From: David Thompson Date: Fri, 19 Aug 2016 20:40:12 -0400 Subject: Add Sly manual. --- manuals/sly/REPL.html | 107 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 manuals/sly/REPL.html (limited to 'manuals/sly/REPL.html') diff --git a/manuals/sly/REPL.html b/manuals/sly/REPL.html new file mode 100644 index 0000000..0811888 --- /dev/null +++ b/manuals/sly/REPL.html @@ -0,0 +1,107 @@ + + + + + +Sly: REPL + + + + + + + + + + + + + + + + + + + + +
+

+Next: , Up: Utilities   [Contents][Index]

+
+
+ +

4.6.1 REPL

+ +
+
(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. +

+
+
Scheme Procedure: start-sly-repl [port]
+

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. +

+
+
Scheme Procedure: resume-game-loop
+

Abort from the error handling loop prompt and resume the game loop. +

+ + + + + + -- cgit v1.2.3