improvements to dream sequence.
This commit is contained in:
BIN
desktop/asset-work/dream/far.png
Normal file
BIN
desktop/asset-work/dream/far.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.9 KiB |
BIN
desktop/asset-work/dream/sky.png
Normal file
BIN
desktop/asset-work/dream/sky.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.7 KiB |
@@ -15,7 +15,8 @@
|
|||||||
[play-clj.math :refer :all]
|
[play-clj.math :refer :all]
|
||||||
[play-clj.ui :refer :all]
|
[play-clj.ui :refer :all]
|
||||||
[play-clj.utils :refer :all]
|
[play-clj.utils :refer :all]
|
||||||
[play-clj.g2d :refer :all]))
|
[play-clj.g2d :refer :all])
|
||||||
|
(:import [com.badlogic.gdx.graphics Color]))
|
||||||
|
|
||||||
(def walk-chan (a/chan))
|
(def walk-chan (a/chan))
|
||||||
|
|
||||||
@@ -516,9 +517,8 @@
|
|||||||
:default {:origin-x 31}}
|
:default {:origin-x 31}}
|
||||||
:facing :left
|
:facing :left
|
||||||
:update-fn (fn [s es e]
|
:update-fn (fn [s es e]
|
||||||
(if (:distracted? e)
|
(assoc-in e [:offset-y] (* (:scale-y e) (get-in es [:bounce-surrogate :delta-y] 0))))
|
||||||
(assoc-in e [:offset-y] 0)
|
:talk-color (Color/valueOf "ADA6FFFF")
|
||||||
(assoc-in e [:offset-y] (get-in es [:bounce-surrogate :delta-y] 0))))
|
|
||||||
:script (actions/get-script entities
|
:script (actions/get-script entities
|
||||||
(if (get-in @entities [:room :entities :fairy-godfather :distracted?])
|
(if (get-in @entities [:room :entities :fairy-godfather :distracted?])
|
||||||
(actions/do-dialogue entities :ego "He wouldn't be able to hear me from there.")
|
(actions/do-dialogue entities :ego "He wouldn't be able to hear me from there.")
|
||||||
|
|||||||
Reference in New Issue
Block a user