From 5473d5d303b55b06438d65c4b3abd2fc0b0f86fc Mon Sep 17 00:00:00 2001 From: equa Date: Thu, 22 Apr 2021 22:18:58 -0500 Subject: very messy music --- lib/transition.fnl | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/transition.fnl') diff --git a/lib/transition.fnl b/lib/transition.fnl index 096de9e..e62dcb8 100644 --- a/lib/transition.fnl +++ b/lib/transition.fnl @@ -1,6 +1,7 @@ (local state (require :lib.state)) (local font (require :lib.font)) (local translation (require :lib.translation)) +(local music-state (require :lib.music-state)) (fn draw [self] (local (width height) (love.graphics.getDimensions)) @@ -34,6 +35,8 @@ ;; TODO: actually update in case it returns something else (when (not= self.type :pause) (state.update self.present-state)) + (when (= self.type :pause) + (set music-state.screen :pause)) (set self.age (math.min 40 (+ self.age 1))) (if self.transition self.future-state -- cgit 1.3.0-6-gf8a5