diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2018-08-08 18:53:14 +0200 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2018-08-08 18:53:14 +0200 |
commit | 78bea2fae49b2175f74d5c672af0c45089e77295 (patch) | |
tree | 9c67a4b9c7a7ab94e4bb82b23101ed0f8d9d5675 /scenes | |
parent | d55f37f023f227774a34c72a4463450fa53fce4a (diff) |
Add intro background as asset.
Diffstat (limited to 'scenes')
-rw-r--r-- | scenes/intro.scm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scenes/intro.scm b/scenes/intro.scm index 4fb4b69..30ea844 100644 --- a/scenes/intro.scm +++ b/scenes/intro.scm @@ -38,6 +38,8 @@ (define-asset game-font (load-font "assets/fonts/good_neighbors_starling.xml")) +(define-asset intro-bg (load-image "assets/images/intro-bg.png")) + (define texts '("\ The void has been suspended for @@ -101,7 +103,7 @@ to dry.")) (list (make <sprite> #:name 'bg - #:texture (load-image "assets/images/intro-bg.png")) + #:texture (asset-ref intro-bg)) (make <intro>) (make <filled-rect> #:name 'fade-all |