summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrtrop <maximillian.pol@gmail.com>2013-10-09 09:32:27 -0700
committermrtrop <maximillian.pol@gmail.com>2013-10-09 09:32:27 -0700
commitecb08685d5acefc069381cef88d55a31c3c4f0b0 (patch)
treed4e7a55c30c666428657cd40e910039819f9d9bd
parent501857145e7dd3b1a2889367b7ed096cfed7d390 (diff)
Fixed README examples using old vector module
-rw-r--r--README.org4
1 files changed, 2 insertions, 2 deletions
diff --git a/README.org b/README.org
index 43a1eaf..8bab0cf 100644
--- a/README.org
+++ b/README.org
@@ -165,7 +165,7 @@
;; Move horizontally across the screen, starting at x=0 and moving to
;; x=800, in 60 ticks.
(lerp (lambda (x)
- (set-sprite-position! sprite (vector x (/ window-height 2))))
+ (set-sprite-position! sprite (vector2 x (/ window-height 2))))
0 800 60))
#+END_SRC
@@ -183,7 +183,7 @@
(schedule-action
(action-parallel
(lerp (lambda (x)
- (set-sprite-position! sprite (vector x (/ window-height 2))))
+ (set-sprite-position! sprite (vector2 x (/ window-height 2))))
0 800 60)
;; Rotate sprite 1080 degrees in 120 ticks.
(lerp (lambda (angle)