summaryrefslogtreecommitdiff
path: root/examples/animation.scm
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-06-07 19:57:06 -0400
committerDavid Thompson <dthompson2@worcester.edu>2014-06-07 19:57:06 -0400
commitc2a4f0636569978a40cb5c98875d798624909eb2 (patch)
treeca0d993826c0adde719e3a88aec255626281340d /examples/animation.scm
parentdef69615603e49bb17b09c7352295578f9dd67af (diff)
Replace vector2 module with a more generic vector module.
* 2d/vector2.scm: Delete it. * 2d/vector.scm: New file. * Makefile.am (SOURCES): s/vector2/vector. * 2d/font.scm: * 2d/keyboard.scm: * 2d/mouse.scm: * 2d/rect.scm: * 2d/shader.scm: * 2d/sprite.scm: * 2d/texture.scm: * 2d/transform.scm: * 2d/window.scm: * examples/2048/2048: * examples/animation.scm: * examples/coroutine.scm: * examples/font.scm: * examples/particles.scm: * examples/simple.scm: * examples/tilemap.scm: Use vectors instead of defunct vector2.
Diffstat (limited to 'examples/animation.scm')
-rw-r--r--examples/animation.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/animation.scm b/examples/animation.scm
index 8be77ef..873b2de 100644
--- a/examples/animation.scm
+++ b/examples/animation.scm
@@ -19,7 +19,7 @@
(2d game)
(2d sprite)
(2d tileset)
- (2d vector2)
+ (2d vector)
(2d window))
(load "common.scm")
@@ -39,7 +39,7 @@ sprite out of it."
(make-animation frames 6 #t)))
(define sprite (make-sprite (make-demo-animation)
- #:position (vector2 320 240)))
+ #:position #(320 240)))
(add-hook! draw-hook (lambda (dt alpha) (draw-sprite sprite)))