summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2017-01-23 21:37:54 -0500
committerDavid Thompson <dthompson2@worcester.edu>2017-01-23 21:37:54 -0500
commit1120a159f43cd64532ada005ad9a7693d8649ba3 (patch)
treed321e47b668fdd33f2795c28cb850c87b722fc54
parent2aa92720f5dd895470d6b065657c9639c8d3eb9b (diff)
chickadee: Update code example again.
-rw-r--r--haunt.scm8
1 files changed, 5 insertions, 3 deletions
diff --git a/haunt.scm b/haunt.scm
index 21bcfff..2da7a99 100644
--- a/haunt.scm
+++ b/haunt.scm
@@ -439,15 +439,17 @@ eventually 3D) games in Scheme, such as:")
(p "Here is a simple example:")
,(highlight-scheme
"(use-modules (chickadee)
- (chickadee math vector))
+ (chickadee math vector)
+ (chickadee render sprite)
+ (chickadee render texture))
(define sprite #f)
(define (load)
- (set! sprite (load-image \"chickadee.png\")))
+ (set! sprite (load-image \"images/chickadee.png\")))
(define (draw alpha)
- (draw-sprite sprite (vec2 320.0 240.0)))
+ (draw-sprite sprite (vec2 256.0 176.0)))
(add-hook! load-hook load)
(add-hook! draw-hook draw)