packing.
This commit is contained in:
@@ -163,7 +163,7 @@
|
||||
(assoc-in [:room :entities :glow :opacity] 0.0))))
|
||||
|
||||
(defn make [screen]
|
||||
(let [shopkeep-sheet (texture! (texture "inside-antique/shopkeep-talk.png") :split 18 21)
|
||||
(let [shopkeep-sheet (texture! (utils/get-texture "inside-antique/shopkeep-talk.png") :split 18 21)
|
||||
shopkeep-stand (animation 0.1 (for [i (flatten [(repeat 30 0) 1 (repeat 50 0) 1 0 1 0 1])]
|
||||
(aget shopkeep-sheet 0 i)))
|
||||
shopkeep-talk (animation 0.15 (for [i [0 2 0 2 0 3 1 0]]
|
||||
@@ -171,7 +171,7 @@
|
||||
shopkeep-sigh (utils/make-anim "inside-antique/antique-sigh.png" [22 21] 0.12 (flatten [ (range 9) 0 0 ]))
|
||||
|
||||
beard (utils/make-anim "inside-antique/beard.png" [26 52] 0.5 [0 1 0 2])
|
||||
teddy (assoc (texture "inside-antique/teddy.png")
|
||||
teddy (assoc (utils/get-texture "inside-antique/teddy.png")
|
||||
:x 255
|
||||
:y 95
|
||||
:baseline 160
|
||||
@@ -268,10 +268,10 @@
|
||||
:ego "It's a tapestry of Rupert the Lion!"
|
||||
:ego "He's the town of Remington's mascot."))}
|
||||
}
|
||||
:layers [(assoc (texture "inside-antique/background.png") :x 0 :y 0 :baseline 0)
|
||||
(assoc (texture "inside-antique/desk.png") :x 0 :y 0 :baseline 113)
|
||||
:layers [(assoc (utils/get-texture "inside-antique/background.png") :x 0 :y 0 :baseline 0)
|
||||
(assoc (utils/get-texture "inside-antique/desk.png") :x 0 :y 0 :baseline 113)
|
||||
|
||||
(assoc (texture "inside-antique/fg.png") :x 0 :y 0 :baseline 320 :parallax 1.5)
|
||||
(assoc (utils/get-texture "inside-antique/fg.png") :x 0 :y 0 :baseline 320 :parallax 1.5)
|
||||
]
|
||||
:entities {:shopkeep (actions/start-animation screen (assoc (animation->texture screen shopkeep-stand) :x 148 :y 122 :baseline 112
|
||||
:stand shopkeep-stand
|
||||
@@ -299,10 +299,10 @@
|
||||
(actions/get-script entities
|
||||
(actions/talk entities :shopkeep "No thanks, sonny."))))
|
||||
:stand)
|
||||
:glow (assoc (texture "inside-antique/glow.png") :x 0 :y 0 :baseline 240 :additive? true :opacity 0.3)
|
||||
:closed-blinds (assoc (texture "inside-antique/closed-blinds.png") :x 0 :y 0 :baseline 0 :opacity 1.0)
|
||||
:open-blinds (assoc (texture "inside-antique/open-blinds.png") :x 0 :y 0 :baseline 0 :opacity 0.0)
|
||||
:darken (assoc (texture "inside-antique/darken.png") :x 0 :y 0 :baseline 321 :opacity 0.4 )
|
||||
:glow (assoc (utils/get-texture "inside-antique/glow.png") :x 0 :y 0 :baseline 240 :additive? true :opacity 0.3)
|
||||
:closed-blinds (assoc (utils/get-texture "inside-antique/closed-blinds.png") :x 0 :y 0 :baseline 0 :opacity 1.0)
|
||||
:open-blinds (assoc (utils/get-texture "inside-antique/open-blinds.png") :x 0 :y 0 :baseline 0 :opacity 0.0)
|
||||
:darken (assoc (utils/get-texture "inside-antique/darken.png") :x 0 :y 0 :baseline 321 :opacity 0.4 )
|
||||
:beard (assoc (animation->texture screen beard)
|
||||
:anim beard
|
||||
:anim-start 0
|
||||
@@ -315,7 +315,7 @@
|
||||
:fire-particle (doto (assoc (particle-effect "inside-antique/fire-particle") :x 162 :y 108
|
||||
:baseline 240)
|
||||
(particle-effect! :set-position 162 108))
|
||||
:bowl (assoc (texture "inside-antique/bowl.png")
|
||||
:bowl (assoc (utils/get-texture "inside-antique/bowl.png")
|
||||
:x 165
|
||||
:y 110
|
||||
:baseline 125
|
||||
@@ -352,7 +352,7 @@
|
||||
:shopkeep "Pronto!"))))))
|
||||
:teddy teddy}
|
||||
:portrait (rooms/make-entity :portrait
|
||||
(assoc (texture "inside-antique/portrait.png")
|
||||
(assoc (utils/get-texture "inside-antique/portrait.png")
|
||||
:x 112
|
||||
:y 114
|
||||
:baseline 120
|
||||
|
||||
Reference in New Issue
Block a user