reworked dialogue
This commit is contained in:
@@ -11,6 +11,26 @@
|
||||
[play-clj.utils :refer :all]
|
||||
[play-clj.g2d :refer :all]))
|
||||
|
||||
(defn bloodclot-appear [entities]
|
||||
(actions/run-action entities
|
||||
(begin [this screen entities]
|
||||
(-> entities
|
||||
(assoc-in [:tweens :bloodclot-head-appear]
|
||||
(utils/tween :bloodclot-head-appear screen [:room :entities :bloodclot-head :opacity] 0.0 1.0 0.2 :power 4.0))
|
||||
(assoc-in [:tweens :bloodclot-appear]
|
||||
(utils/tween :bloodclot-appear screen [:room :entities :bloodclot :opacity] 0.0 1.0 0.2 :power 4.0))))
|
||||
|
||||
(continue [this screen entities]
|
||||
entities)
|
||||
|
||||
(done? [this screen entities]
|
||||
(= 1.0 (get-in entities [:room :entities :bloodclot :opacity])))
|
||||
|
||||
(terminate [this screen entities]
|
||||
entities)
|
||||
(can-skip? [this screen entities]
|
||||
false)))
|
||||
|
||||
|
||||
(defn nice-trophy-dialogue [entities]
|
||||
{:run #(actions/respond entities %
|
||||
@@ -97,10 +117,10 @@
|
||||
|
||||
(defn walk-to-blergh [entities]
|
||||
(actions/walk-to entities :ego [85 145] :face :right)
|
||||
(actions/transition-background entities :space [0 65])
|
||||
(actions/transition-background entities :space [0 65] :transition-music? false)
|
||||
(actions/walk-straight-to entities :ego [160 45] :face :right)
|
||||
(actions/play-animation entities :blergh :appear :stop? false)
|
||||
(actions/transition-music entities :fight))
|
||||
(actions/transition-music entities nil)
|
||||
(bloodclot-appear entities))
|
||||
|
||||
(defn pull-sword [entities]
|
||||
(actions/play-animation entities :ego :reach)
|
||||
@@ -122,23 +142,26 @@
|
||||
|
||||
(actions/add-entity entities :blergh (get-in @entities [:room :blergh]))
|
||||
(actions/do-dialogue entities :ego "Who are you?!"
|
||||
:bloodclot-head "I am Bloodclot, the Scottish goblin king!"
|
||||
:bloodclot-head "I have waited patiently for the last 100 years for someone to\npull the sword and return me to my throne!"
|
||||
:bloodclot-head "But I had never expected my liberator to be so..."
|
||||
:bloodclot-head "Appetizing."
|
||||
:bloodclot-head "I am Bloodclot, the Scottish goblin!"
|
||||
:bloodclot-head "I've spent last 100 years training for this day."
|
||||
:bloodclot-head "The day when I must best the worthiest of knights in battle."
|
||||
:bloodclot-head "But I had never expected my foe to be so..."
|
||||
:bloodclot-head "... appetizing."
|
||||
:bloodclot-head "You're no hero. You're just a morsel."
|
||||
:bloodclot-head "Come here, and I promise I will spare you much pain."
|
||||
:ego "Wait a second. I'm just a kid.")
|
||||
(actions/walk-straight-to entities :ego [115 45] :override-dir :right)
|
||||
(actions/do-dialogue entities :ego "I'm just trying to impress Georgia McGorgeous.")
|
||||
(actions/walk-straight-to entities :ego [100 45] :override-dir :right)
|
||||
(actions/walk-straight-to entities :ego [75 45] :override-dir :right)
|
||||
(actions/do-dialogue entities :ego "I just... accidentally pulled the sword!")
|
||||
(actions/walk-straight-to entities :ego [35 45] :override-dir :right)
|
||||
(actions/do-dialogue entities :ego "I wouldn't taste very good anyhow!")
|
||||
(actions/do-dialogue entities
|
||||
:bloodclot-head "'Fight he must for one more test,\nHe will die if not the best.'"
|
||||
:bloodclot-head "Ring any bells?"
|
||||
:bloodclot-head "Your Georgia McGorgeous would be sorely disappointed to see such a cowardly hero now."
|
||||
:bloodclot-head "Come, now. You're no hero. You're just a morsel."
|
||||
:bloodclot-head "All this talking has worked up a fierce hunger. Come here, and I promise to make it quick."))
|
||||
:bloodclot-head "Face it kiddo, you're no match for me, or my appetite."
|
||||
:bloodclot-head "And Georgia McGorgeous would never go for such a cowardly knight anyhow."
|
||||
:bloodclot-head "Let the feast begin."))
|
||||
|
||||
(defn try-to-pull-sword [entities missing-items obtained-items]
|
||||
(let [item->proof {:trophy "wisdom" :medal "strength" :kiss "courage"}]
|
||||
|
||||
Reference in New Issue
Block a user