added grass.
This commit is contained in:
@@ -42,7 +42,15 @@
|
||||
:script (actions/get-script entities
|
||||
(when (get-in @entities [:room :entities :ladder])
|
||||
(get-down entities)))}))
|
||||
)}}}
|
||||
)}}
|
||||
:grass {:box [26 105 60 160]
|
||||
:script (actions/get-script entities
|
||||
(if (not (actions/has-item? entities :grass))
|
||||
(do
|
||||
(actions/walk-to entities :ego [60 100] :face :left)
|
||||
(actions/play-animation entities :ego :reach)
|
||||
(actions/give entities :grass))
|
||||
(actions/talk entities :ego "I don't really need any more grass.")))}}
|
||||
:layers [(assoc (texture "cat-tree/background.png") :x 0 :y 0 :baseline 0)
|
||||
(assoc (texture "cat-tree/tree-and-rock.png") :x 0 :y 0 :baseline 161)
|
||||
(assoc (texture "cat-tree/sillhoute.png") :x 0 :y 0 :baseline 240)]
|
||||
|
||||
Reference in New Issue
Block a user