pausing and resuming.

This commit is contained in:
Bryce Covert
2016-02-18 19:29:02 -08:00
parent a66d4af877
commit 21ba80aa7e
3 changed files with 9 additions and 1 deletions

View File

@@ -1 +1 @@
44
45

View File

@@ -96,6 +96,10 @@
:the-end (assoc (utils/get-texture "the-end.png") :x 0 :y 0 :scale-x 4 :scale-y 4 :origin-x 0 :origin-y 0)
:tweens {:fade-in
(tween/tween :fade-in screen [:fade :opacity] 1.0 0.0 5.0 :ease tween/ease-out-cubic)}}))
:on-pause (fn [_ _]
(utils/set-fullscreen! false)
nil)
:on-render
(fn [{:keys [^FitViewport viewport] :as screen} [entities]]

View File

@@ -372,6 +372,10 @@
]
(merge entities (:main-menu entities)))))
:on-pause (fn [_ _]
(utils/set-fullscreen! false)
nil)
:on-render
(fn [{:keys [^FitViewport viewport] :as screen} [entities]]
(.apply viewport)