should make rendering work again.

This commit is contained in:
2015-04-17 08:07:51 -07:00
parent 505655ea01
commit adbdd2ee1d
9 changed files with 27 additions and 13 deletions

View File

@@ -25,10 +25,12 @@
[:dawn :opacity]
1.0)))
(defn walk-to-castle [entities]
(defn walk-to-castle [entities dawn?]
(actions/walk-to entities :ego [0 80])
(actions/walk-straight-to entities :ego [-20 80])
(actions/transition-background entities :outside-castle [330 80] :between dawn-fade)
(if dawn?
(actions/transition-background entities :outside-castle [330 80] :between dawn-fade)
(actions/transition-background entities :outside-castle [330 80]))
(actions/walk-straight-to entities :ego [310 80]))
(def ego-sheep-loc
@@ -94,7 +96,7 @@
:ego "I now have The Slinger's Shot."
:ego "And just in time, too. It's getting light.")
(actions/update-state entities #(assoc % :next-time :sunrise))
(walk-to-castle entities)
(walk-to-castle entities true)
(outside-castle/go-through-gate entities)
(actions/update-state entities #(assoc % :next-time :day))
(inside-castle/walk-to-blergh entities)
@@ -348,7 +350,7 @@
:left-dir {:box [0 40 20 140]
:script (actions/get-script
entities
(walk-to-castle entities))
(walk-to-castle entities false))
:cursor :left}}
:layers {:day [(assoc (texture "outsidehouse/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "outsidehouse/house.png") :x 0 :y 0 :baseline 122)