adding cursors everywhere!

This commit is contained in:
Bryce Covert
2016-08-11 21:28:56 -07:00
parent 626eb12f98
commit 6f24840998

View File

@@ -224,6 +224,7 @@
:ego "Thanks, I guess.")) :ego "Thanks, I guess."))
(defn make-ladder-area [box] (defn make-ladder-area [box]
{:box box {:box box
:cursor :hand
:script (actions/get-script entities :script (actions/get-script entities
(actions/walk-to entities :ego [144 58] ) (actions/walk-to entities :ego [144 58] )
(actions/talk entities :ego "Maybe I can climb it!") (actions/talk entities :ego "Maybe I can climb it!")
@@ -275,7 +276,7 @@
(get-down entities)))}) (get-down entities)))})
:interactions :interactions
{:down-dir {:box [150 0 270 20] {:down-dir {:box [150 0 270 20]
:script (actions/get-script entities :only-script (actions/get-script entities
(if (get-in @entities [:room :entities :ladder]) (if (get-in @entities [:room :entities :ladder])
(do (do
(actions/talk entities :ego "I'll get down.") (actions/talk entities :ego "I'll get down.")
@@ -291,6 +292,7 @@
:ladder-area-3 (make-ladder-area [133 69 205 92]) :ladder-area-3 (make-ladder-area [133 69 205 92])
:rock {:box [62 83 101 103] :rock {:box [62 83 101 103]
:cursor :hand
:script (actions/get-script entities :script (actions/get-script entities
(when (and (actions/has-obtained? entities :note-1) (when (and (actions/has-obtained? entities :note-1)
(not (actions/has-obtained? entities :walkie-talkies))) (not (actions/has-obtained? entities :walkie-talkies)))
@@ -310,6 +312,7 @@
(actions/talk entities :ego "Tin cans connected with string?") (actions/talk entities :ego "Tin cans connected with string?")
(actions/do-dialogue entities :ego "I wonder what all of these magic devices do.")))} (actions/do-dialogue entities :ego "I wonder what all of these magic devices do.")))}
:grass {:box [26 105 60 160] :grass {:box [26 105 60 160]
:cursor :hand
:script (actions/get-script entities :script (actions/get-script entities
(if (not (actions/has-obtained? entities :grass)) (if (not (actions/has-obtained? entities :grass))
(do (do
@@ -320,6 +323,7 @@
:ego "It's a high protein variety.")) :ego "It's a high protein variety."))
(actions/talk entities :ego "I don't really need any more grass.")))} (actions/talk entities :ego "I don't really need any more grass.")))}
:grandma {:box [109 33 132 98] :grandma {:box [109 33 132 98]
:cursor :talk
:script (actions/get-script entities (do-grandma-dialogue entities)) :script (actions/get-script entities (do-grandma-dialogue entities))
:scripts #(condp = % :scripts #(condp = %
:kiss :kiss
@@ -344,6 +348,7 @@
:cat (actions/start-animation screen :cat (actions/start-animation screen
(assoc (animation->texture screen cat-stand) (assoc (animation->texture screen cat-stand)
:x 184 :y 173 :baseline 1000 :x 184 :y 173 :baseline 1000
:cursor :talk
:walk cat-walk :walk cat-walk
:stand cat-stand :stand cat-stand
:script (actions/get-script entities :script (actions/get-script entities
@@ -425,6 +430,7 @@
:talk owl-talk :talk owl-talk
:puke owl-puke :puke owl-puke
:eye owl-eye :eye owl-eye
:cursor :talk
:talk-color (color 0.5 0.5 1.0 1.0) :talk-color (color 0.5 0.5 1.0 1.0)
:anim owl-stand :anim owl-stand
:anim-start 0 :anim-start 0