supporting different dialogue colors.

This commit is contained in:
2014-12-16 11:28:20 -08:00
parent 654f564311
commit 6a8191f49a
7 changed files with 9 additions and 5 deletions

View File

@@ -167,6 +167,7 @@
:right {:stand warriors-stand
:talk warriors-stand}
:facing :right
:talk-color (color 1.0 0.4 0.3 1.0)
:script (actions/get-script entities
(do-warrior-dialogue entities)
))

View File

@@ -135,6 +135,7 @@
:right {:talk wizard-talk
:stand wizard-stand
:disappear wizard-disappear}
:talk-color (color 0.75 0.1 1.0 1.0)
:facing :left
:script (actions/get-script entities (do-wizard-dialogue entities)))
:stand)

View File

@@ -21,7 +21,7 @@
(< (dist-to-sheep entities) 45))
(defn wizard-dialogue [entities]
(actions/do-dialogue entities :ego "Hello there Gandarf!" :wizard "Oh no, not you again!")
(actions/do-dialogue entities :ego "Hello there [RED]Gandarf[]!" :wizard "Oh no, not you again!")
(actions/present-choices entities
{:choices ["What do you mean, \"Not you again?\""
{:run #(actions/respond entities % :wizard "I mean, you've wrecked my life and I never want to see you again.")