nice tweaks.

This commit is contained in:
2014-12-13 12:55:06 -08:00
parent b89b92e85f
commit 24d5ccfd8e
4 changed files with 33 additions and 21 deletions

View File

@@ -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])]