adding cursors everywhere!
This commit is contained in:
@@ -224,6 +224,7 @@
|
||||
:ego "Thanks, I guess."))
|
||||
(defn make-ladder-area [box]
|
||||
{:box box
|
||||
:cursor :hand
|
||||
:script (actions/get-script entities
|
||||
(actions/walk-to entities :ego [144 58] )
|
||||
(actions/talk entities :ego "Maybe I can climb it!")
|
||||
@@ -275,7 +276,7 @@
|
||||
(get-down entities)))})
|
||||
:interactions
|
||||
{: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])
|
||||
(do
|
||||
(actions/talk entities :ego "I'll get down.")
|
||||
@@ -291,6 +292,7 @@
|
||||
:ladder-area-3 (make-ladder-area [133 69 205 92])
|
||||
|
||||
:rock {:box [62 83 101 103]
|
||||
:cursor :hand
|
||||
:script (actions/get-script entities
|
||||
(when (and (actions/has-obtained? entities :note-1)
|
||||
(not (actions/has-obtained? entities :walkie-talkies)))
|
||||
@@ -310,6 +312,7 @@
|
||||
(actions/talk entities :ego "Tin cans connected with string?")
|
||||
(actions/do-dialogue entities :ego "I wonder what all of these magic devices do.")))}
|
||||
:grass {:box [26 105 60 160]
|
||||
:cursor :hand
|
||||
:script (actions/get-script entities
|
||||
(if (not (actions/has-obtained? entities :grass))
|
||||
(do
|
||||
@@ -320,6 +323,7 @@
|
||||
:ego "It's a high protein variety."))
|
||||
(actions/talk entities :ego "I don't really need any more grass.")))}
|
||||
:grandma {:box [109 33 132 98]
|
||||
:cursor :talk
|
||||
:script (actions/get-script entities (do-grandma-dialogue entities))
|
||||
:scripts #(condp = %
|
||||
:kiss
|
||||
@@ -330,7 +334,7 @@
|
||||
(actions/do-dialogue entities :grandma "No thank you, handsome.")
|
||||
(if (get-in @entities [:room :entities :ladder])
|
||||
(actions/do-stop entities :ego :face :right))))
|
||||
}}
|
||||
}}
|
||||
:layers {:day [(assoc (utils/get-texture "cat-tree/background.png") :x 0 :y 0 :baseline 0)
|
||||
(assoc (utils/get-texture "cat-tree/tree-and-rock.png") :x 0 :y 0 :baseline 161)
|
||||
(assoc (utils/get-texture "cat-tree/brush-l.png") :x -5 :y -5 :parallax 1.3 :baseline 240)
|
||||
@@ -344,6 +348,7 @@
|
||||
:cat (actions/start-animation screen
|
||||
(assoc (animation->texture screen cat-stand)
|
||||
:x 184 :y 173 :baseline 1000
|
||||
:cursor :talk
|
||||
:walk cat-walk
|
||||
:stand cat-stand
|
||||
:script (actions/get-script entities
|
||||
@@ -425,6 +430,7 @@
|
||||
:talk owl-talk
|
||||
:puke owl-puke
|
||||
:eye owl-eye
|
||||
:cursor :talk
|
||||
:talk-color (color 0.5 0.5 1.0 1.0)
|
||||
:anim owl-stand
|
||||
:anim-start 0
|
||||
@@ -498,5 +504,5 @@
|
||||
(if (= :night (get-in entities [:state :time]))
|
||||
(make-night entities)
|
||||
(utils/remove-interaction entities :rock)
|
||||
)))
|
||||
)))
|
||||
:start-pos [200 10])))
|
||||
|
||||
Reference in New Issue
Block a user