summaryrefslogtreecommitdiff
path: root/haunt.scm
diff options
context:
space:
mode:
Diffstat (limited to 'haunt.scm')
-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)