diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2018-08-06 10:57:57 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-08-06 10:57:57 +0200 |
commit | d55f37f023f227774a34c72a4463450fa53fce4a (patch) | |
tree | 0a18cb0ffc1ec9cbe74b04db4bb58ae175e20bc7 /scenes | |
parent | 1b87807329b81b97b2e23b1ffcba4121787d710c (diff) |
Add vignette.
Diffstat (limited to 'scenes')
-rw-r--r-- | scenes/death.scm | 4 | ||||
-rw-r--r-- | scenes/game.scm | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/scenes/death.scm b/scenes/death.scm index a2b6921..1e35563 100644 --- a/scenes/death.scm +++ b/scenes/death.scm @@ -40,6 +40,7 @@ #:export (death)) (define-asset death-map (load-tile-map "assets/maps/death.tmx")) +(define-asset vignette-image (load-image "assets/images/vignette.png")) (define-class <death> (<scene>) (tile-map #:accessor tile-map #:init-form death-map) @@ -246,6 +247,9 @@ void main (void) { (make <node-2d> #:children (list death + (make <sprite> + #:name 'vignette + #:texture (asset-ref vignette-image)) (let ((text "Press any key to quit.") (font death-font)) (make <label> diff --git a/scenes/game.scm b/scenes/game.scm index ac6d7df..fae998d 100644 --- a/scenes/game.scm +++ b/scenes/game.scm @@ -54,6 +54,7 @@ (define-asset test-map (load-tile-map "assets/maps/01.tmx")) (define-asset error-sample (load-sample "assets/sounds/error.ogg")) +(define-asset vignette-image (load-image "assets/images/vignette.png")) (define-class <game> (<scene>) (status #:accessor status #:init-form 'playing) |