summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
Diffstat (limited to 'README')
-rw-r--r--README14
1 files changed, 2 insertions, 12 deletions
diff --git a/README b/README
index 0886740..dfba2d1 100644
--- a/README
+++ b/README
@@ -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