adding cursors everywhere!
This commit is contained in:
@@ -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
|
||||||
@@ -330,7 +334,7 @@
|
|||||||
(actions/do-dialogue entities :grandma "No thank you, handsome.")
|
(actions/do-dialogue entities :grandma "No thank you, handsome.")
|
||||||
(if (get-in @entities [:room :entities :ladder])
|
(if (get-in @entities [:room :entities :ladder])
|
||||||
(actions/do-stop entities :ego :face :right))))
|
(actions/do-stop entities :ego :face :right))))
|
||||||
}}
|
}}
|
||||||
:layers {:day [(assoc (utils/get-texture "cat-tree/background.png") :x 0 :y 0 :baseline 0)
|
: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/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)
|
(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
|
: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
|
||||||
@@ -498,5 +504,5 @@
|
|||||||
(if (= :night (get-in entities [:state :time]))
|
(if (= :night (get-in entities [:state :time]))
|
||||||
(make-night entities)
|
(make-night entities)
|
||||||
(utils/remove-interaction entities :rock)
|
(utils/remove-interaction entities :rock)
|
||||||
)))
|
)))
|
||||||
:start-pos [200 10])))
|
:start-pos [200 10])))
|
||||||
|
|||||||
Reference in New Issue
Block a user