diff options
author | David Thompson <dthompson2@worcester.edu> | 2021-09-13 08:21:43 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2021-09-21 20:17:36 -0400 |
commit | be3d45520c1caf84c5db22fd40704f0c25cd01cf (patch) | |
tree | dc93e7edfa726e7bf243307846487cbdd13358e4 /README | |
parent | 5c9b19b378d80ca3d33cb2ad0bd5465239a0c1f6 (diff) |
Add a CLI.
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 |