diff options
author | David Thompson <dthompson2@worcester.edu> | 2017-01-22 20:11:35 -0500 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2017-01-22 20:11:35 -0500 |
commit | 2aa92720f5dd895470d6b065657c9639c8d3eb9b (patch) | |
tree | e785c159eafa3c495978d48e0970b09be8a2f81e | |
parent | ffade05a970431df7be5e5aa35c3bfda25ee5d6f (diff) |
chickadee: Update code example.
-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) |