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 | |
parent | d55f37f023f227774a34c72a4463450fa53fce4a (diff) |
Add intro background as asset.
-rw-r--r-- | assets/images/intro-bg.png | bin | 0 -> 21035 bytes | |||
-rw-r--r-- | assets/images/src/intro-bg.xcf | bin | 0 -> 42969 bytes | |||
-rw-r--r-- | scenes/intro.scm | 4 |
3 files changed, 3 insertions, 1 deletions
diff --git a/assets/images/intro-bg.png b/assets/images/intro-bg.png Binary files differnew file mode 100644 index 0000000..8f15af9 --- /dev/null +++ b/assets/images/intro-bg.png diff --git a/assets/images/src/intro-bg.xcf b/assets/images/src/intro-bg.xcf Binary files differnew file mode 100644 index 0000000..d12dbbe --- /dev/null +++ b/assets/images/src/intro-bg.xcf 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 |