nice tweaks.
This commit is contained in:
@@ -16,7 +16,17 @@
|
||||
(actions/remove-entity entities :ladder)
|
||||
(actions/give entities :ladder))
|
||||
|
||||
(defn do-grandma-dialogue [entities]
|
||||
(defn do-saved-grandma-dialogue [entities]
|
||||
(actions/walk-straight-to entities :ego [165 45] :face :left)
|
||||
(actions/do-dialogue entities
|
||||
:grandma "Oh it's my handsome hero again!"
|
||||
:grandma "Back for another kiss?"
|
||||
:ego "Umm, erm...")
|
||||
(actions/play-animation entities :ego :get-sick :stop? false)
|
||||
(actions/walk-straight-to entities :ego [205 10])
|
||||
(actions/talk entities :ego "No way."))
|
||||
|
||||
(defn do-grandma-dialogue-with-cat [entities]
|
||||
(actions/walk-straight-to entities :ego [165 45] :face :left)
|
||||
(actions/do-dialogue entities
|
||||
:grandma "Oh, good, a strapping young lad!"
|
||||
@@ -77,6 +87,11 @@
|
||||
{:run #(actions/respond entities %
|
||||
:grandma "Please come back soon and help me rescue Smuffle Wuffles!")}]}))
|
||||
|
||||
(defn do-grandma-dialogue [entities]
|
||||
(if (actions/has-obtained? entities :kiss)
|
||||
(do-saved-grandma-dialogue entities)
|
||||
(do-grandma-dialogue-with-cat entities)))
|
||||
|
||||
(defn make [screen]
|
||||
(let [cat-stand-sheet (texture! (texture "cat-tree/cat-stand.png") :split 22 10)
|
||||
cat-stand (animation 0.15 (for [i (flatten [(repeat 10 0) 1 1 (repeat 10 0) 2 3 4 3 0 0 2 3 4 3 (repeat 10 0) 1 1 (repeat 10 0) 5 5 6 6 7 (repeat 10 [7 8]) 6 5 0])]
|
||||
|
||||
@@ -125,8 +125,9 @@
|
||||
:script (actions/get-script entities
|
||||
(actions/remove-entity entities :flask)
|
||||
(actions/give entities :flask-1)
|
||||
(actions/do-dialogue entities :ego "Hey you think I could have this flask?"
|
||||
:wizard "Sure.")))}
|
||||
(when (get-in @entities [:room :entities :wizard])
|
||||
(actions/do-dialogue entities :ego "Hey you think I could have this flask?"
|
||||
:wizard "Sure."))))}
|
||||
:collision "inside-house/collision.png"
|
||||
:scale-fn (utils/scaler-fn-with-baseline 110 0.10 1.75)
|
||||
:apply-state (fn [entities]
|
||||
|
||||
@@ -191,7 +191,13 @@
|
||||
(actions/give entities :flask-1-with-milk)
|
||||
(actions/talk entities :ego "Sheeps milk."))
|
||||
(actions/talk entities :ego "She's too far away.")))
|
||||
:flask-1-with-mushrooms (items/make-cream-of-mushroom)}
|
||||
:flask-1-with-mushrooms
|
||||
(actions/get-script entities
|
||||
(if (is-sheep-close? @entities)
|
||||
(do (actions/walk-to entities :ego ego-sheep-loc :face :left)
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(items/make-cream-of-mushroom entities))
|
||||
(actions/talk entities :ego "She's too far away.")))}
|
||||
:left {:walk (utils/flip sheep-walk)
|
||||
:stand (utils/flip sheep-stand)}
|
||||
:right {:walk sheep-walk
|
||||
|
||||
Reference in New Issue
Block a user