added grass.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 35 KiB After Width: | Height: | Size: 25 KiB |
Binary file not shown.
@@ -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)]
|
||||
|
||||
@@ -210,7 +210,7 @@
|
||||
(utils/load)
|
||||
{:object nil
|
||||
:active? true
|
||||
:inventory [:grass :carrot]
|
||||
:inventory [:carrot]
|
||||
:clues #{}
|
||||
:mints-eaten 0}))
|
||||
(defscreen scene
|
||||
|
||||
Reference in New Issue
Block a user