diff options
Diffstat (limited to 'haunt.scm')
-rw-r--r-- | haunt.scm | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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) |