working on getting in stash.

This commit is contained in:
2015-01-08 12:59:17 -08:00
parent 818f3f85f3
commit ac3f8644b7
9 changed files with 103 additions and 34 deletions

View File

@@ -76,7 +76,10 @@
(actions/talk entities :ego "Here goes nothing!")
(actions/play-animation entities :ego :squat)
(actions/play-animation entities :stash :open :stop? false)
(actions/walk-straight-to entities :ego [212 97])))
(actions/walk-straight-to entities :ego [212 97])
(actions/transition-background entities :inside-stash [118 96])
(actions/walk-straight-to entities :ego [142 96])
(actions/talk entities :ego "This must be Frankie Rockfist's secret stash!")))
(defn make [screen]
(let [fountain (utils/make-anim "outside-jail/fountain.png" [42 50] 0.2 (range 3))
@@ -197,7 +200,7 @@
(actions/remove-entity entities :watch)
(actions/give entities :watch))))
:stash (rooms/make-entity :stash (assoc (texture "outside-jail/closed-stash.png")
:stash (rooms/make-entity :stash (assoc (animation->texture screen open-stash)
:x 197 :y 94 :baseline 146
:open open-stash
:close close-stash))