added grass.

This commit is contained in:
2014-11-22 15:27:31 -08:00
parent 919871ddc3
commit 7205b7f388
4 changed files with 10 additions and 2 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 35 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@@ -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)]

View File

@@ -210,7 +210,7 @@
(utils/load)
{:object nil
:active? true
:inventory [:grass :carrot]
:inventory [:carrot]
:clues #{}
:mints-eaten 0}))
(defscreen scene