summaryrefslogtreecommitdiff
path: root/examples/sprite.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2018-08-20 20:22:44 -0400
committerDavid Thompson <dthompson2@worcester.edu>2018-08-23 08:01:11 -0400
commiteceae08c4f6985c3cc30191ab33b22302578b81e (patch)
treeead018aabef22bbd0097df991f6a900bc7b93883 /examples/sprite.scm
parent89ed33ac799b9b55b4694c46f8e19a24d343e99b (diff)
math: vector: Add read syntax.
* chickadee/math/vector.scm (read-vec): New procedure. Extend reader. * examples/lines.scm: Use new vector read syntax. * examples/nine-patch.scm: Ditto. * examples/sprite.scm: Ditto. * examples/text.scm: Ditto. * examples/tiled.scm: Ditto.
Diffstat (limited to 'examples/sprite.scm')
-rw-r--r--examples/sprite.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/sprite.scm b/examples/sprite.scm
index 12a9ffb..8e54f21 100644
--- a/examples/sprite.scm
+++ b/examples/sprite.scm
@@ -9,6 +9,6 @@
(set! sprite (load-image "images/chickadee.png")))
(define (draw alpha)
- (draw-sprite sprite (vec2 256.0 176.0)))
+ (draw-sprite sprite #v(256.0 176.0)))
(run-game/sdl #:load load #:draw draw)