adding flask item.
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 2.2 KiB After Width: | Height: | Size: 2.4 KiB |
BIN
desktop/resources/inside-house/flask.png
Normal file
BIN
desktop/resources/inside-house/flask.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
@@ -29,6 +29,12 @@
|
||||
:right {:talk wizard-talk
|
||||
:stand wizard-stand}
|
||||
:facing :left)
|
||||
:stand)}
|
||||
:stand)
|
||||
:flask (assoc (texture "inside-house/flask.png")
|
||||
:x 265 :y 80 :baseline 240
|
||||
:script (actions/get-script entities
|
||||
(actions/give entities :flask)
|
||||
(actions/do-dialogue entities :ego "Hey you think I could have this flask?"
|
||||
:wizard "Sure.")))}
|
||||
:collision "inside-house/collision.png"
|
||||
:scale-fn (utils/scaler-fn-with-baseline 110 0.10 1.75))))
|
||||
|
||||
@@ -144,6 +144,7 @@
|
||||
:cursor :left}}
|
||||
:layers [(assoc (texture "bg5.png") :x 0 :y 0 :baseline 0)
|
||||
(assoc (texture "house.png") :x 0 :y 0 :baseline 122)
|
||||
(assoc (texture "outsidehouse/fence.png") :x 0 :y 0 :baseline 95)
|
||||
(assoc (texture "overdirt.png") :x 0 :y 0 :baseline 240)
|
||||
(assoc (texture "background-trees.png") :x 0 :y 0 :baseline 44)]
|
||||
:entities {:sheep (actions/start-animation screen
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
(update! screen :renderer (stage) :camera (orthographic))
|
||||
(let [_ (input! :set-cursor-image (utils/cursor "cursor.png" :main) 0 0)
|
||||
music (sound "town-music.mp3")
|
||||
_ (sound! music :loop 0.20)
|
||||
_ (sound! music :loop 0.80)
|
||||
rooms {:inside-house (rooms.inside-house/make screen)
|
||||
:outside-house (rooms.outside-house/make screen)
|
||||
:behind-house (rooms.behind-house/make screen)
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
(let [{:keys [x y]} (input->screen screen {:x (:input-x screen) :y (:input-y screen)})]
|
||||
(println (:input-x screen) (:input-y screen) "->" x y)))
|
||||
|
||||
(def +all-cursors+ [:main :wool :mushrooms :carrot :right :down :left :up])
|
||||
(def +all-cursors+ [:main :wool :mushrooms :carrot :right :down :left :up :flask])
|
||||
|
||||
(defn cursor [filename which]
|
||||
(let [scale 2
|
||||
|
||||
Reference in New Issue
Block a user