summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2018-08-08 18:53:14 +0200
committerRicardo Wurmus <rekado@elephly.net>2018-08-08 18:53:14 +0200
commit78bea2fae49b2175f74d5c672af0c45089e77295 (patch)
tree9c67a4b9c7a7ab94e4bb82b23101ed0f8d9d5675
parentd55f37f023f227774a34c72a4463450fa53fce4a (diff)
Add intro background as asset.
-rw-r--r--assets/images/intro-bg.pngbin0 -> 21035 bytes
-rw-r--r--assets/images/src/intro-bg.xcfbin0 -> 42969 bytes
-rw-r--r--scenes/intro.scm4
3 files changed, 3 insertions, 1 deletions
diff --git a/assets/images/intro-bg.png b/assets/images/intro-bg.png
new file mode 100644
index 0000000..8f15af9
--- /dev/null
+++ b/assets/images/intro-bg.png
Binary files differ
diff --git a/assets/images/src/intro-bg.xcf b/assets/images/src/intro-bg.xcf
new file mode 100644
index 0000000..d12dbbe
--- /dev/null
+++ b/assets/images/src/intro-bg.xcf
Binary files differ
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