diff options
-rw-r--r-- | haunt.scm | 8 |
1 files changed, 5 insertions, 3 deletions
@@ -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) |