diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/shmup/shmup.scm | 8 |
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 |