diff options
author | David Thompson <dthompson2@worcester.edu> | 2014-06-07 19:57:06 -0400 |
---|---|---|
committer | David Thompson <dthompson2@worcester.edu> | 2014-06-07 19:57:06 -0400 |
commit | c2a4f0636569978a40cb5c98875d798624909eb2 (patch) | |
tree | ca0d993826c0adde719e3a88aec255626281340d /examples/coroutine.scm | |
parent | def69615603e49bb17b09c7352295578f9dd67af (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/coroutine.scm')
-rw-r--r-- | examples/coroutine.scm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/coroutine.scm b/examples/coroutine.scm index 741b357..6db9623 100644 --- a/examples/coroutine.scm +++ b/examples/coroutine.scm @@ -21,7 +21,7 @@ (2d game) (2d sprite) (2d texture) - (2d vector2) + (2d vector) (2d window)) (load "common.scm") @@ -33,11 +33,11 @@ (define sprite (make-sprite texture - #:position (vector 320 240))) + #:position #(320 240))) (define (random-vector2) - (vector2 (random window-width) - (random window-height))) + (vector (random window-width) + (random window-height))) ;; Simple script that moves the sprite to a random location every ;; second. @@ -51,6 +51,6 @@ (add-hook! draw-hook (lambda (dt alpha) (draw-sprite sprite))) (with-window (make-window #:title "Coroutines" - #:resolution (vector2 window-width - window-height)) + #:resolution (vector window-width + window-height)) (start-game-loop)) |