diff options
-rw-r--r-- | README | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -7,17 +7,21 @@ Chickadee is a game development toolkit for Guile Scheme. #+BEGIN_SRC scheme - (use-modules (chickadee)) + (use-modules (chickadee) + (chickadee math vector)) (define sprite #f) (define (load) (set! sprite (load-image "chickadee.png"))) - (define (render alpha) - (draw-sprite sprite (vector2 320 240))) + (define (draw alpha) + (draw-sprite sprite (vec2 320.0 240.0))) - (run-game #:load load #:render render) + (add-hook! load-hook load) + (add-hook! draw-hook draw) + + (run-game) #+END_SRC * Features |