diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-02-26 00:04:19 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-02-26 00:04:19 +0100 |
commit | a4d118aa35402ae81d26526771d37203d3dd0eb1 (patch) | |
tree | 0ad0879374a1bb723c0a3bd21455b727081cb43c /scenes | |
parent | 89ae8c5fa52373444abb36075bcb539f71f533a6 (diff) |
Diffstat (limited to 'scenes')
-rw-r--r-- | scenes/intro.scm | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/scenes/intro.scm b/scenes/intro.scm index cb8f029..f42c0f4 100644 --- a/scenes/intro.scm +++ b/scenes/intro.scm @@ -16,6 +16,7 @@ ;;; <http://www.gnu.org/licenses/>. (define-module (scenes intro) + #:use-module (chickadee audio) #:use-module (chickadee math rect) #:use-module (chickadee math vector) #:use-module ((chickadee graphics color) #:select (make-color)) @@ -23,7 +24,6 @@ #:use-module (chickadee graphics texture) #:use-module (chickadee scripting) #:use-module (engine assets) - #:use-module (engine audio) #:use-module (engine node) #:use-module (engine node-2d) #:use-module (engine scene) @@ -104,8 +104,7 @@ The leaf begins to dry.")) (game)))))) (define (intro) - (set-music-volume! 1.0) - (play-music (load-music "assets/music/intro.ogg") #:loop? #f) + (audio-play (load-audio "assets/music/intro.ogg")) (let ((container (make <node-2d> #:children (list |