packing.
This commit is contained in:
@@ -209,7 +209,7 @@
|
||||
|
||||
|
||||
(defn make [screen]
|
||||
(let [warden-sheet (texture! (texture "inside-jail/warden.png") :split 43 58)
|
||||
(let [warden-sheet (texture! (utils/get-texture "inside-jail/warden.png") :split 43 58)
|
||||
warden-talk (animation 0.2 (for [i [1 0 1 0 1 0 1 0 0 0 2 0]]
|
||||
(aget warden-sheet 0 i)))
|
||||
warden-stand (animation 0.1 (for [i (flatten [(repeat 30 0) 2 (repeat 20 0) 2])]
|
||||
@@ -219,7 +219,7 @@
|
||||
warden-sleep (animation 0.25 (for [i (flatten [ 3 4 3 4 3 4 3 4 3 4 5 5 2 2 2 2 2 2])]
|
||||
(aget warden-sheet 0 i)))
|
||||
candle (utils/make-anim "inside-jail/candle.png" [20 25] 0.1 (range 4))
|
||||
candle-aura (utils/make-anim (texture "inside-house/candle-aura.png") [27 27] 0.2 [0 1 2 3 2 1])]
|
||||
candle-aura (utils/make-anim (utils/get-texture "inside-house/candle-aura.png") [27 27] 0.2 [0 1 2 3 2 1])]
|
||||
(rooms/make :music :inside-antique
|
||||
:interactions {
|
||||
:lock {:box [172 102 190 124]
|
||||
@@ -305,10 +305,10 @@
|
||||
:door {:box [257 62 301 152]
|
||||
:cursor :down
|
||||
:script (actions/get-script entities (leave entities))}}
|
||||
:layers [(assoc (texture "inside-jail/background.png") :x 0 :y 0 :baseline 0 :night-profile :none)
|
||||
(assoc (texture "inside-jail/bars.png") :x 0 :y 0 :baseline 165 :night-profile :none)
|
||||
(assoc (texture "inside-jail/glow.png") :x 0 :y 0 :baseline 240 :additive? true :opacity 0.35 :night-profile :none)
|
||||
(assoc (texture "inside-jail/fg.png") :x 0 :y 5 :baseline 241 :parallax 1.5 :night-profile :none)]
|
||||
:layers [(assoc (utils/get-texture "inside-jail/background.png") :x 0 :y 0 :baseline 0 :night-profile :none)
|
||||
(assoc (utils/get-texture "inside-jail/bars.png") :x 0 :y 0 :baseline 165 :night-profile :none)
|
||||
(assoc (utils/get-texture "inside-jail/glow.png") :x 0 :y 0 :baseline 240 :additive? true :opacity 0.35 :night-profile :none)
|
||||
(assoc (utils/get-texture "inside-jail/fg.png") :x 0 :y 5 :baseline 241 :parallax 1.5 :night-profile :none)]
|
||||
:hotspots [{:box [121 40 258 44]
|
||||
:fn (fn [screen entities]
|
||||
|
||||
@@ -331,7 +331,7 @@
|
||||
(actions/begin-animation entities :warden :sleep)) entities)
|
||||
entities)
|
||||
entities)))}]
|
||||
:entities {:warden (assoc (texture "inside-jail/warden.png" )
|
||||
:entities {:warden (assoc (utils/get-texture "inside-jail/warden.png" )
|
||||
:x 40 :y 60 :baseline 166
|
||||
:stand warden-stand
|
||||
:talk warden-talk
|
||||
@@ -367,13 +367,13 @@
|
||||
:ego "I can't kill him just for doing his job."))
|
||||
:rope (actions/get-script entities (tie-up-warden entities "I'll tie him up."))
|
||||
:ball-n-chain (actions/get-script entities (tie-up-warden entities "I'll lock him up."))})
|
||||
:chest-top (assoc (texture "inside-jail/chest-top.png")
|
||||
:chest-top (assoc (utils/get-texture "inside-jail/chest-top.png")
|
||||
:x 193 :y (- 240 165) :baseline 166
|
||||
:origin-x 0 :origin-y 0
|
||||
:night-profile :none
|
||||
:open (animation 0.8 [(texture "inside-jail/chest-top-open.png")])
|
||||
:close (animation 0.8 [(texture "inside-jail/chest-top.png")]))
|
||||
:ball-n-chain (assoc (texture "inside-jail/ball-n-chain.png")
|
||||
:open (animation 0.8 [(utils/get-texture "inside-jail/chest-top-open.png")])
|
||||
:close (animation 0.8 [(utils/get-texture "inside-jail/chest-top.png")]))
|
||||
:ball-n-chain (assoc (utils/get-texture "inside-jail/ball-n-chain.png")
|
||||
:x 80 :y 80 :baseline 160
|
||||
:night-profile :none
|
||||
:script (actions/get-script entities
|
||||
@@ -381,7 +381,7 @@
|
||||
(actions/play-animation entities :ego :squat)
|
||||
(actions/remove-entity entities :ball-n-chain)
|
||||
(actions/give entities :ball-n-chain)))
|
||||
:moveable-bars (assoc (texture "inside-jail/moveable-bars.png")
|
||||
:moveable-bars (assoc (utils/get-texture "inside-jail/moveable-bars.png")
|
||||
:night-profile :none
|
||||
:x 132 :y 77 :baseline 163)
|
||||
:candle (assoc (animation->texture screen candle)
|
||||
@@ -396,7 +396,7 @@
|
||||
:candle-smoke (doto (assoc (particle-effect "inside-jail/candle") :x 215 :y 130
|
||||
:baseline 200)
|
||||
(particle-effect! :set-position 215 130))
|
||||
:crowbar (assoc (texture "inside-jail/crowbar.png")
|
||||
:crowbar (assoc (utils/get-texture "inside-jail/crowbar.png")
|
||||
:x 304 :y 65 :baseline 175
|
||||
:night-profile :none
|
||||
:script (actions/get-script entities
|
||||
@@ -407,7 +407,7 @@
|
||||
(actions/give entities :crowbar)
|
||||
(actions/talk entities :ego "It's a crowbar."))
|
||||
(actions/talk entities :ego "I can't reach it."))))
|
||||
:closed-window (assoc (texture "inside-jail/window.png")
|
||||
:closed-window (assoc (utils/get-texture "inside-jail/window.png")
|
||||
:night-profile :none
|
||||
:x 99 :y 111 :baseline 128)}
|
||||
:collision "inside-jail/collision-locked.png"
|
||||
|
||||
Reference in New Issue
Block a user