summaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-09-13 08:21:43 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-09-21 20:17:36 -0400
commitbe3d45520c1caf84c5db22fd40704f0c25cd01cf (patch)
treedc93e7edfa726e7bf243307846487cbdd13358e4 /README
parent5c9b19b378d80ca3d33cb2ad0bd5465239a0c1f6 (diff)
Add a CLI.
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