changing to riddles.

This commit is contained in:
2014-10-31 12:14:30 -07:00
parent 51ae5e3a09
commit b6d3c2ea66

View File

@@ -44,30 +44,23 @@
:choices actions/previous-choices}
"Something else."
{:choices actions/something-else}]}
"What are you playing?"
"Nice trophy."
{:run #(actions/respond entities %
:game-player "It's called Warlock's Castle. "
:game-player "You play as a warlock, using skills and magic to reach the top of the tower of doom."
:game-player "If you want to reach the top of the tower, you must have the sharpest of minds."
:game-player "It's not for little kids like you."
:game-player "Even wise wizards like Mr. Fangald can't beat me!")
:choices ["Can I play with you?"
:game-player "Thanks. I was nominated the Riddlemaster of Remington for the 7th straight year!"
:game-player "I guess I'm pretty wise."
:game-player "And with my sharp intellect, I'm guessing you want my trophy?")
:choices ["Yes."
{:run #(do (actions/respond entities %
:game-player "You think YOU have what it takes to climb the stairs of treachery?"
:game-player "Or solve the riddle in the library of mystery?"
:game-player "Or break the curse that has entrapped the cave beast for 1000 years?"
:game-player "Very well. Here are your cards.")
(actions/give entities items/cards)
(actions/talk entities :game-player "Are you ready to play?"))
:choices ["You bet!" {:run (fn [_] (play-warlocks-castle entities))}
"Hang on a sec." {:choices ["Hey look! A real warlock!" {:choices actions/previous-choices}
"Ok, ready." {:run (fn [_] (play-warlocks-castle entities))}]}]}
"That sounds pretty dumb."
:game-player "Well, if you want my trophy, you'll have to earn it."
:game-player "How about a game of riddles?"
:game-player "Bring me the answer:"
:game-player "White as snow, but not as cold,"
:game-player "Keeps you warm, or so I'm told."
:ego "Okay."))}
"No."
{:run #(actions/respond entities %
:game-player "That's exactly what I'd expect a dummy like you to say."
:choices actions/previous-choices)}
"Something else."
{:choices actions/something-else}]}
:choices actions/previous-choices)}]}
"Nevermind."
{:run #(actions/respond entities % :game-player "See you around.")}]}))
@@ -86,6 +79,11 @@
(assoc (texture "inside-castle/pedestal-overlay.png") :x 0 :y 0 :baseline 135)]
:entities {:game-player (assoc (texture "inside-castle/gameplayer.png") :x 266 :y 49 :baseline 191
:script (actions/get-script entities (do-game-player-dialogue entities))
:scripts {:wool (actions/get-script entities
(actions/do-dialogue entities
:game-player "That's right! Now for your second riddle:"
:game-player "Filled with air, light as a feather,"
:game-player "If you want to keep it, best have a tether."))}
:anim nil
:talk game-player-talk)}
:collision "inside-castle/collision.png"