summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2021-09-21 20:05:17 -0400
committerDavid Thompson <dthompson2@worcester.edu>2021-09-21 20:34:43 -0400
commitb9fa5959cbd7ad512566029b202d00a443ea3f15 (patch)
tree534a60bffe5b615a1551f52617688a7776c8d589 /examples
parentee17d9897cfaf382d36e2cf0a1aae3da5e2ef2f7 (diff)
math: vector: Deprecate #v syntax and remove uses of it.
Diffstat (limited to 'examples')
-rw-r--r--examples/9-patch.scm2
-rw-r--r--examples/model.scm2
-rw-r--r--examples/sprite.scm2
-rw-r--r--examples/text.scm2
4 files changed, 4 insertions, 4 deletions
diff --git a/examples/9-patch.scm b/examples/9-patch.scm
index 451f079..feb02b0 100644
--- a/examples/9-patch.scm
+++ b/examples/9-patch.scm
@@ -12,6 +12,6 @@
(define (draw alpha)
(draw-9-patch image (make-rect 192.0 192.0 256.0 96.0) #:margin 4.0)
- (draw-text "I am error." #v(200.0 266.0)))
+ (draw-text "I am error." (vec2 200.0 266.0)))
(run-game #:load load #:draw draw)
diff --git a/examples/model.scm b/examples/model.scm
index 00441a1..8ba9b4a 100644
--- a/examples/model.scm
+++ b/examples/model.scm
@@ -14,7 +14,7 @@
(define position (vec3 0.0 0.0 0.0))
(define velocity (vec3 0.0 0.0 0.0))
(define model #f)
-(define text-position #v(4.0 464.0))
+(define text-position (vec2 4.0 464.0))
(define text "")
(define y-rotation 0.0)
diff --git a/examples/sprite.scm b/examples/sprite.scm
index a132c92..eb79161 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 #v(256.0 176.0)))
+ (draw-sprite sprite (vec2 256.0 176.0)))
(run-game #:load load #:draw draw)
diff --git a/examples/text.scm b/examples/text.scm
index dd9c83a..3d2b3b5 100644
--- a/examples/text.scm
+++ b/examples/text.scm
@@ -4,6 +4,6 @@
(define (draw alpha)
(draw-text "The quick brown fox jumps over the lazy dog.\nFive hexing wizard bots jump quickly."
- #v(140.0 240.0)))
+ (vec2 140.0 240.0)))
(run-game #:draw draw)