diff options
Diffstat (limited to 'lib/transition.fnl')
-rw-r--r-- | lib/transition.fnl | 3 |
1 files changed, 3 insertions, 0 deletions
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 |