summaryrefslogtreecommitdiff
path: root/examples/shmup/shmup.scm
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shmup/shmup.scm')
-rw-r--r--examples/shmup/shmup.scm8
1 files changed, 2 insertions, 6 deletions
diff --git a/examples/shmup/shmup.scm b/examples/shmup/shmup.scm
index 95f6292..b775234 100644
--- a/examples/shmup/shmup.scm
+++ b/examples/shmup/shmup.scm
@@ -653,12 +653,8 @@
(reset-game shmup))
(define-method (on-boot (shmup <shmup>))
- (set! (views shmup)
- (list (make <view-2d>
- #:camera (make <camera-2d>
- #:width game-width
- #:height game-height)
- #:area (make-rect 0 0 window-width window-height))))
+ (set! (cameras shmup)
+ (list (make <camera-2d> #:resolution (vec2 game-width game-height))))
(attach-to shmup
(make <parallax>
#:name 'background