multi bird
This commit is contained in:
@@ -143,7 +143,12 @@
|
||||
(actions/talk entities :ego "Ye Ol' Antique Shoppe."))}}
|
||||
:layers [(assoc (texture "inside-castle/background.png") :x 0 :y 0 :baseline 0)
|
||||
(assoc (texture "inside-castle/pedestal-overlay.png") :x 0 :y 0 :baseline 135)]
|
||||
:entities {:trophy (assoc (animation->texture screen trophy)
|
||||
:entities {:bird-1 (utils/make-bird screen (as-> [[185 235]
|
||||
[220 225] [210 230] [250 235]] p
|
||||
(concat p (reverse p))))
|
||||
:bird-2 (utils/make-bird screen (as-> [[220 225] [195 235] [210 230] [250 225]] p
|
||||
(concat p (reverse p))))
|
||||
:trophy (assoc (animation->texture screen trophy)
|
||||
:x 253 :y 69 :baseline 191
|
||||
:anim trophy
|
||||
:anim-start 0
|
||||
@@ -198,7 +203,7 @@
|
||||
:scale-fn (utils/scaler-fn-from-image "inside-castle/scale.png" 0.25 1.00)
|
||||
:apply-state (fn [entities]
|
||||
(as-> entities entities
|
||||
(if (actions/has-item? entities :ladder)
|
||||
(update-in entities [:room :entities] #(dissoc % :ladder))
|
||||
(if (actions/has-item? entities :trophy)
|
||||
(update-in entities [:room :entities] #(dissoc % :trophy))
|
||||
entities)))
|
||||
:start-pos [245 90])))
|
||||
|
||||
Reference in New Issue
Block a user