diff options
Diffstat (limited to 'README')
-rw-r--r-- | README | 14 |
1 files changed, 2 insertions, 12 deletions
@@ -13,20 +13,10 @@ Here's what rendering a sprite looks like: #+BEGIN_SRC scheme - (use-modules (chickadee) - (chickadee math vector) - (chickadee graphics sprite) - (chickadee graphics texture)) - - (define sprite #f) - - (define (load) - (set! sprite (load-image "images/chickadee.png"))) + (define sprite (load-image "images/chickadee.png")) (define (draw alpha) - (draw-sprite sprite #v(256.0 176.0))) - - (run-game #:load load #:draw draw) + (draw-sprite sprite (vec2 256.0 176.0))) #+END_SRC * Features |