final tweaks on puzzle.
This commit is contained in:
@@ -11,7 +11,8 @@
|
||||
[play-clj.ui :refer :all]
|
||||
[play-clj.utils :refer :all]
|
||||
[play-clj.math :refer :all]
|
||||
[play-clj.g2d :refer :all]))
|
||||
[play-clj.g2d :refer :all])
|
||||
(:import [com.badlogic.gdx.graphics Color]))
|
||||
|
||||
(defn go-to-jail [entities]
|
||||
|
||||
@@ -86,16 +87,18 @@
|
||||
:ego "'Also, you'll need to add a split second.'"
|
||||
:ego "'Then, dip the Slinger's Shot in to complete the spell.'"
|
||||
:ego "'Don't forget about my secret stash of helpful stuff.'"))
|
||||
(def frankie-color (Color/valueOf "9907CFFF"))
|
||||
|
||||
(defn listen-to-frankie [entities]
|
||||
(let [respond (fn [msg]
|
||||
(actions/talk entities :ego msg :animate? false :stop? false :color (color 0.6 0.2 0.6 1.0))
|
||||
(actions/talk entities :ego msg :animate? false :stop? false :color frankie-color)
|
||||
(Thread/sleep 200))
|
||||
talk (fn [msg]
|
||||
(actions/talk entities :ego msg :animate? false :stop? false)
|
||||
(Thread/sleep 200))]
|
||||
(talk "Hello?")
|
||||
(respond "Who said that?!")
|
||||
(respond "What the?! A walkie-talkie?")
|
||||
(respond "Who's there?")
|
||||
(actions/present-choices entities
|
||||
{:choices ["It's me, Tick!"
|
||||
{:run #(do
|
||||
|
||||
Reference in New Issue
Block a user