summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorDavid Thompson <dthompson@vistahigherlearning.com>2020-10-06 18:55:15 -0400
committerDavid Thompson <dthompson@vistahigherlearning.com>2020-10-06 18:55:15 -0400
commite02d3d74b1aae368084c3c81145568274054a48c (patch)
treec865d7fc5551ca179a793c7cfbf9abd062d7a8b7 /examples
parentadaf2c55d61d78398e3be355a9390551db47516f (diff)
node-2d: Stop using framebuffers with canvases.
Diffstat (limited to 'examples')
-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