summaryrefslogtreecommitdiff
path: root/examples/tilemap.scm
diff options
context:
space:
mode:
Diffstat (limited to 'examples/tilemap.scm')
-rw-r--r--examples/tilemap.scm9
1 files changed, 5 insertions, 4 deletions
diff --git a/examples/tilemap.scm b/examples/tilemap.scm
index 5e54bde..bb4d9ef 100644
--- a/examples/tilemap.scm
+++ b/examples/tilemap.scm
@@ -90,10 +90,11 @@
(225 225 176 242 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65 65))))
(define scene
- (move (v- (vector2 320 240)
- (v* (vector2 tile-width tile-height)
- (vector2 10 15/2)))
- (group* (compile-tile-layer map-tiles 32 32))))
+ (chain (compile-tile-layer map-tiles 32 32)
+ (list->model)
+ (model-move (v- (vector2 320 240)
+ (v* (vector2 tile-width tile-height)
+ (vector2 10 15/2))))))
(define camera
(orthographic-camera 640 480))