summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2017-01-22 20:11:35 -0500
committerDavid Thompson <dthompson2@worcester.edu>2017-01-22 20:11:35 -0500
commit2aa92720f5dd895470d6b065657c9639c8d3eb9b (patch)
treee785c159eafa3c495978d48e0970b09be8a2f81e
parentffade05a970431df7be5e5aa35c3bfda25ee5d6f (diff)
chickadee: Update code example.
-rw-r--r--haunt.scm5
1 files changed, 3 insertions, 2 deletions
diff --git a/haunt.scm b/haunt.scm
index 0545dd0..21bcfff 100644
--- a/haunt.scm
+++ b/haunt.scm
@@ -438,7 +438,8 @@ eventually 3D) games in Scheme, such as:")
(li "REPL-driven development model"))
(p "Here is a simple example:")
,(highlight-scheme
- "(use-modules (chickadee))
+ "(use-modules (chickadee)
+ (chickadee math vector))
(define sprite #f)
@@ -446,7 +447,7 @@ eventually 3D) games in Scheme, such as:")
(set! sprite (load-image \"chickadee.png\")))
(define (draw alpha)
- (draw-sprite sprite (vector2 320 240)))
+ (draw-sprite sprite (vec2 320.0 240.0)))
(add-hook! load-hook load)
(add-hook! draw-hook draw)