diff options
author | David Thompson <dthompson@vistahigherlearning.com> | 2020-10-06 18:55:15 -0400 |
---|---|---|
committer | David Thompson <dthompson@vistahigherlearning.com> | 2020-10-06 18:55:15 -0400 |
commit | e02d3d74b1aae368084c3c81145568274054a48c (patch) | |
tree | c865d7fc5551ca179a793c7cfbf9abd062d7a8b7 /examples | |
parent | adaf2c55d61d78398e3be355a9390551db47516f (diff) |
node-2d: Stop using framebuffers with canvases.
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 |