From 03072ef67af0623758a660e2cd3fb5e153133efa Mon Sep 17 00:00:00 2001 From: David Thompson Date: Wed, 24 May 2023 08:09:03 -0400 Subject: Update chickadee manual. --- manuals/chickadee/Live-Coding.html | 54 +++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'manuals/chickadee/Live-Coding.html') diff --git a/manuals/chickadee/Live-Coding.html b/manuals/chickadee/Live-Coding.html index 4e3c174..e34b29e 100644 --- a/manuals/chickadee/Live-Coding.html +++ b/manuals/chickadee/Live-Coding.html @@ -1,6 +1,6 @@ - - + --> + - + Live Coding (The Chickadee Game Toolkit) - - - - - - - - - - - + + + + + + + + + + + - + @@ -84,7 +84,7 @@ ul.no-bullet {list-style: none}

Next: , Previous: , Up: Top   [Contents][Index]

-
+

4 Live Coding

One of the biggest appeals of any Lisp dialect is the ability to use @@ -108,17 +108,17 @@ Then, in the game loop’s update procedure, call poll-coop-repl-server and pass the REPL object. Here is a template to follow:

-
-
(use-modules (chickadee)
-             (system repl coop-server))
+
+
(use-modules (chickadee)
+             (system repl coop-server))
 
-(define repl (spawn-coop-repl-server))
+(define repl (spawn-coop-repl-server))
 
-(define (update dt)
-  (poll-coop-repl-server repl)
-  ...)
+(define (update dt)
+  (poll-coop-repl-server repl)
+  ...)
 
-(run-game #:update update ...)
+(run-game #:update update ...)
 

To use the REPL, connect to it via port 37146. Telnet will do the -- cgit v1.2.3