removing unnecessary dark images

This commit is contained in:
2015-05-05 17:17:57 -07:00
parent e233c67004
commit 5e0ebc8f48
29 changed files with 63 additions and 50 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 40 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 16 KiB

View File

@@ -50,9 +50,11 @@
(assoc (texture "behindhouse/brush.png") :x 0 :y 0 :baseline 240) (assoc (texture "behindhouse/brush.png") :x 0 :y 0 :baseline 240)
(assoc (texture "behindhouse/fgleft.png") :x -10 :y 0 :baseline 240 :parallax 1.5) (assoc (texture "behindhouse/fgleft.png") :x -10 :y 0 :baseline 240 :parallax 1.5)
(assoc (texture "behindhouse/fg2.png") :x (- 320 122) :y 0 :baseline 240 :parallax 1.5)] (assoc (texture "behindhouse/fg2.png") :x (- 320 122) :y 0 :baseline 240 :parallax 1.5)]
:night [(assoc (texture "behindhouse/background-dark.png") :x 0 :y 0 :baseline 0) :night [(assoc (texture "behindhouse/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "behindhouse/house-dark.png") :x 0 :y 0 :baseline 122) (assoc (texture "behindhouse/house.png") :x 0 :y 0 :baseline 122)
(assoc (texture "behindhouse/brush-dark.png") :x 0 :y 0 :baseline 240)]} (assoc (texture "behindhouse/brush.png") :x 0 :y 0 :baseline 240)
(assoc (texture "behindhouse/fgleft.png") :x -10 :y 0 :baseline 240 :parallax 1.5)
(assoc (texture "behindhouse/fg2.png") :x (- 320 122) :y 0 :baseline 240 :parallax 1.5)]}
:entities {:stick (assoc (texture "behindhouse/stick.png") :entities {:stick (assoc (texture "behindhouse/stick.png")
:x 26 :y 80 :baseline 160 :x 26 :y 80 :baseline 160
:script (actions/get-script entities :script (actions/get-script entities

View File

@@ -77,6 +77,7 @@
:x 215 :y 90 :baseline 150 :x 215 :y 90 :baseline 150
:anim stand :anim stand
:anim-start 0 :anim-start 0
:night-profile :sprite
:scale-x 1.4 :scale-x 1.4
:scale-y 1.4 :scale-y 1.4
:talk-color (color 0.6 0.2 0.6 1.0) :talk-color (color 0.6 0.2 0.6 1.0)
@@ -95,6 +96,7 @@
:x 244 :y 102 :baseline 138 :x 244 :y 102 :baseline 138
:scale-x 1.4 :scale-x 1.4
:scale-y 1.4 :scale-y 1.4
:night-profile :sprite
:anim stand :anim stand
:anim-start 0 :anim-start 0
:stand stand))) :stand stand)))
@@ -106,6 +108,7 @@
:scale-x 1.4 :scale-x 1.4
:scale-y 1.4 :scale-y 1.4
:anim stand :anim stand
:night-profile :sprite
:anim-start 0 :anim-start 0
:stand stand))) :stand stand)))
@@ -140,8 +143,8 @@
(actions/remove-item entities :walkie-talkies) (actions/remove-item entities :walkie-talkies)
(actions/walk-straight-to entities :ego [285 71]))}}} (actions/walk-straight-to entities :ego [285 71]))}}}
:layers {:day [(assoc (texture "castle-gate/background.png") :x 0 :y 0 :baseline 0)] :layers {:day [(assoc (texture "castle-gate/background.png") :x 0 :y 0 :baseline 0 :night-profile :none)]
:night [(assoc (texture "castle-gate/background.png") :x 0 :y 0 :baseline 0)]} :night [(assoc (texture "castle-gate/background.png") :x 0 :y 0 :baseline 0 :night-profile :none)]}
:entities {:frankie (make-frankie screen) :entities {:frankie (make-frankie screen)
:goon-1 (make-goon-1 screen) :goon-1 (make-goon-1 screen)
:goon-2 (make-goon-2 screen)} :goon-2 (make-goon-2 screen)}

View File

@@ -255,10 +255,10 @@
(assoc (texture "cat-tree/tree-and-rock.png") :x 0 :y 0 :baseline 161) (assoc (texture "cat-tree/tree-and-rock.png") :x 0 :y 0 :baseline 161)
(assoc (texture "cat-tree/brush-l.png") :x -5 :y -5 :parallax 1.3 :baseline 240) (assoc (texture "cat-tree/brush-l.png") :x -5 :y -5 :parallax 1.3 :baseline 240)
(assoc (texture "cat-tree/tree-r.png") :x 270 :y 0 :scale-x 1.1 :scale-y 1.1 :parallax 1.5 :baseline 240)] (assoc (texture "cat-tree/tree-r.png") :x 270 :y 0 :scale-x 1.1 :scale-y 1.1 :parallax 1.5 :baseline 240)]
:night [(assoc (texture "cat-tree/background-dark.png") :x 0 :y 0 :baseline 0) :night [(assoc (texture "cat-tree/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "cat-tree/tree-and-rock-dark.png") :x 0 :y 0 :baseline 161) (assoc (texture "cat-tree/tree-and-rock.png") :x 0 :y 0 :baseline 161)
(assoc (texture "cat-tree/brush-l-dark.png") :x -5 :y -5 :parallax 1.3 :baseline 240) (assoc (texture "cat-tree/brush-l.png") :x -5 :y -5 :parallax 1.3 :baseline 240)
(assoc (texture "cat-tree/tree-r-dark.png") :x 270 :y 0 :scale-x 1.1 :scale-y 1.1 :parallax 1.5 :baseline 240)]} (assoc (texture "cat-tree/tree-r.png") :x 270 :y 0 :scale-x 1.1 :scale-y 1.1 :parallax 1.5 :baseline 240)]}
:entities {:cat (actions/start-animation screen :entities {:cat (actions/start-animation screen
(assoc (animation->texture screen cat-stand) (assoc (animation->texture screen cat-stand)
:x 184 :y 173 :baseline 1000 :x 184 :y 173 :baseline 1000
@@ -322,6 +322,7 @@
:talk-color (color 0.5 0.5 1.0 1.0) :talk-color (color 0.5 0.5 1.0 1.0)
:anim owl-stand :anim owl-stand
:anim-start 0 :anim-start 0
:night-profile :none
:script (actions/get-script entities (talk-to-owl entities)) :script (actions/get-script entities (talk-to-owl entities))
:scripts #(condp = % :scripts #(condp = %
:monocle (actions/get-script entities (give-monocle entities)) :monocle (actions/get-script entities (give-monocle entities))

View File

@@ -319,11 +319,12 @@
:layers {:day [(assoc (texture "inside-castle/background.png") :x 0 :y 0 :baseline 0) :layers {:day [(assoc (texture "inside-castle/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "inside-castle/way-back-tree.png") :x 0 :y 0 :baseline 97) (assoc (texture "inside-castle/way-back-tree.png") :x 0 :y 0 :baseline 97)
(assoc (texture "inside-castle/roof.png") :x (- 320 57) :y 0 :baseline 240 :parallax 1.5)] (assoc (texture "inside-castle/roof.png") :x (- 320 57) :y 0 :baseline 240 :parallax 1.5)]
:night [(assoc (texture "inside-castle/background-dark.png") :x 0 :y 0 :baseline 0) :night [(assoc (texture "inside-castle/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "inside-castle/way-back-tree-dark.png") :x 0 :y 0 :baseline 97)] (assoc (texture "inside-castle/way-back-tree.png") :x 0 :y 0 :baseline 97)
(assoc (texture "inside-castle/roof.png") :x (- 320 57) :y 0 :baseline 240 :parallax 1.5)]
:sunrise [(assoc (texture "inside-castle/background.png") :x 0 :y 0 :baseline 0) :sunrise [(assoc (texture "inside-castle/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "inside-castle/way-back-tree.png") :x 0 :y 0 :baseline 97)
(assoc (texture "inside-castle/roof.png") :x (- 320 57) :y 0 :baseline 240 :parallax 1.5)]} (assoc (texture "inside-castle/roof.png") :x (- 320 57) :y 0 :baseline 240 :parallax 1.5)]}
:blackout (assoc (texture "black.png") :blackout (assoc (texture "black.png")
:x 0 :y 0 :x 0 :y 0
:width 320 :width 320

View File

@@ -62,9 +62,10 @@
:scripts {:sword (actions/get-script entities (actions/talk entities :ego "There's not enough room to swing my sword here.")) :scripts {:sword (actions/get-script entities (actions/talk entities :ego "There's not enough room to swing my sword here."))
:crowbar (actions/get-script entities :crowbar (actions/get-script entities
(bust-chest entities))}}} (bust-chest entities))}}}
:layers [(assoc (texture "inside-stash/background.png") :x 0 :y 0 :baseline 0)] :layers [(assoc (texture "inside-stash/background.png") :x 0 :y 0 :baseline 0 :night-profile :none)]
:entities {:lid (assoc (texture "inside-stash/lid.png") :entities {:lid (assoc (texture "inside-stash/lid.png")
:x 156 :y 116 :baseline 125)} :x 156 :y 116 :baseline 125 :night-profile :none)
}
:collision "inside-stash/collision.png" :collision "inside-stash/collision.png"
:scale-fn (utils/scaler-fn-with-baseline 110 0.10 1.00) :scale-fn (utils/scaler-fn-with-baseline 110 0.10 1.00)
:start-pos [143 96] :start-pos [143 96]

View File

@@ -297,12 +297,12 @@
:layers {:day [(assoc (texture "outside-castle/background.png") :x 0 :y 0 :baseline 0) :layers {:day [(assoc (texture "outside-castle/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "outside-castle/brush.png") :origin-x 0 :origin-y 0 :scale-x 1.0 :scale-y 1.0 :x 15 :y 0 :baseline 240 :parallax 1.2) (assoc (texture "outside-castle/brush.png") :origin-x 0 :origin-y 0 :scale-x 1.0 :scale-y 1.0 :x 15 :y 0 :baseline 240 :parallax 1.2)
(assoc (texture "outside-castle/walk-behind.png") :x 0 :y 0 :baseline 240)] (assoc (texture "outside-castle/walk-behind.png") :x 0 :y 0 :baseline 240)]
:night [(assoc (texture "outside-castle/background-dark.png") :x 0 :y 0 :baseline 0) :night [(assoc (texture "outside-castle/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "outside-castle/brush-dark.png") :origin-x 0 :origin-y 0 :scale-x 1.0 :scale-y 1.0 :x 15 :y 0 :baseline 240 :parallax 1.2) (assoc (texture "outside-castle/brush.png") :origin-x 0 :origin-y 0 :scale-x 1.0 :scale-y 1.0 :x 15 :y 0 :baseline 240 :parallax 1.2)
(assoc (texture "outside-castle/walk-behind-dark.png") :x 0 :y 0 :baseline 240)] (assoc (texture "outside-castle/walk-behind.png") :x 0 :y 0 :baseline 240)]
:sunrise [(assoc (texture "outside-castle/background.png") :x 0 :y 0 :baseline 0) :sunrise [(assoc (texture "outside-castle/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "outside-castle/brush.png") :origin-x 0 :origin-y 0 :scale-x 1.0 :scale-y 1.0 :x 15 :y 0 :baseline 240 :parallax 1.2) (assoc (texture "outside-castle/brush.png") :origin-x 0 :origin-y 0 :scale-x 1.0 :scale-y 1.0 :x 15 :y 0 :baseline 240 :parallax 1.2)
(assoc (texture "outside-castle/walk-behind.png") :x 0 :y 0 :baseline 240)]} (assoc (texture "outside-castle/walk-behind.png") :x 0 :y 0 :baseline 240)]}
:entities {:peddler (actions/start-animation screen :entities {:peddler (actions/start-animation screen
(assoc (texture "outside-castle/peddler.png") :x 110 :y 90 :baseline 150 :anim nil (assoc (texture "outside-castle/peddler.png") :x 110 :y 90 :baseline 150 :anim nil
:anim-sound-frames {peddler-stand {23 [:scratch 1.0]} :anim-sound-frames {peddler-stand {23 [:scratch 1.0]}
@@ -331,26 +331,27 @@
:stand) :stand)
:steer (actions/start-animation screen (assoc (animation->texture screen steer-stand) :x 203 :y 155 :baseline 80 :steer (actions/start-animation screen (assoc (animation->texture screen steer-stand) :x 203 :y 155 :baseline 80
:stand steer-stand :stand steer-stand
:script (actions/get-script entities :night-profile :sprite
(actions/walk-to entities :ego [168 150] :face :right) :script (actions/get-script entities
(actions/do-dialogue entities (actions/walk-to entities :ego [168 150] :face :right)
:ego "It's Angus, Remington's buff bull." (actions/do-dialogue entities
:ego "He's used in all of the town's rodeos." :ego "It's Angus, Remington's buff bull."
:ego "Farmer Doug feeds him an exclusive wild high-protein grass diet to keep him in tip top shape." :ego "He's used in all of the town's rodeos."
:ego "He looks mean, I'd rather not pet him.")) :ego "Farmer Doug feeds him an exclusive wild high-protein grass diet to keep him in tip top shape."
:scripts #(condp = % :ego "He looks mean, I'd rather not pet him."))
:grass (actions/get-script entities :scripts #(condp = %
(actions/walk-to entities :ego [168 150] :face :right) :grass (actions/get-script entities
(actions/play-animation entities :ego :reach) (actions/walk-to entities :ego [168 150] :face :right)
(actions/remove-item entities :grass) (actions/play-animation entities :ego :reach)
(actions/talk entities :ego "Eww! He slobbered on my hand.") (actions/remove-item entities :grass)
(actions/give entities :slobber)) (actions/talk entities :ego "Eww! He slobbered on my hand.")
:carrot (actions/get-script entities (actions/give entities :slobber))
(actions/walk-to entities :ego [168 150] :face :right) :carrot (actions/get-script entities
(actions/do-dialogue entities (actions/walk-to entities :ego [168 150] :face :right)
:ego "I don't thing Angus is interested." (actions/do-dialogue entities
:ego "Farmer Doug only feeds him a wild high-protein grass.")) :ego "I don't thing Angus is interested."
nil)) :ego "Farmer Doug only feeds him a wild high-protein grass."))
nil))
:stand) :stand)
:balloons (actions/start-animation screen :balloons (actions/start-animation screen
(assoc (animation->texture screen balloon-stand) (assoc (animation->texture screen balloon-stand)

View File

@@ -175,8 +175,8 @@
(actions/talk entities :ego "Filled up with water, just as Gandarf wanted."))}}} (actions/talk entities :ego "Filled up with water, just as Gandarf wanted."))}}}
:layers {:day [(assoc (texture "outside-jail/background.png") :x 0 :y 0 :baseline 0) :layers {:day [(assoc (texture "outside-jail/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "outside-jail/fountain.png") :x 0 :y 0 :baseline 114)] (assoc (texture "outside-jail/fountain.png") :x 0 :y 0 :baseline 114)]
:night [(assoc (texture "outside-jail/background-dark.png") :x 0 :y 0 :baseline 0) :night [(assoc (texture "outside-jail/background.png") :x 0 :y 0 :baseline 0)
(assoc (texture "outside-jail/fountain-dark.png") :x 0 :y 0 :baseline 114)]} (assoc (texture "outside-jail/fountain.png") :x 0 :y 0 :baseline 114)]}
:entities {:warden {:object nil :entities {:warden {:object nil
:x 36 :x 36
:y 86 :y 86
@@ -188,18 +188,20 @@
(particle-effect! :start)) (particle-effect! :start))
:x 172 :x 172
:y 140 :y 140
:baseline 114)} :baseline 114)
:axe (assoc (texture "outside-jail/axe.png") :x 213 :y 63 :baseline 176 :night-profile :sprite)}
[:axe :day] (rooms/make-entity :axe (assoc (texture "outside-jail/axe.png") :x 213 :y 63 :baseline 176))
[:axe :night] (rooms/make-entity :axe (assoc (texture "outside-jail/axe-dark.png") :x 213 :y 63 :baseline 176))
:guard (rooms/make-entity :guard (assoc (animation->texture screen guard-stand) :guard (rooms/make-entity :guard (assoc (animation->texture screen guard-stand)
:x 70 :y 55 :baseline 185 :x 70 :y 55 :baseline 185
:stand guard-stand :stand guard-stand
:talk guard-talk :talk guard-talk
:sleep guard-sleep :sleep guard-sleep
:script (actions/get-script entities (search-guard entities)))) :script (actions/get-script entities (search-guard entities))
:night-profile :sprite))
:rope (rooms/make-entity :rope (assoc (texture "outside-jail/rope.png") :rope (rooms/make-entity :rope (assoc (texture "outside-jail/rope.png")
:x 14 :y 20 :baseline 1)) :x 14 :y 20 :baseline 1 :night-profile :sprite))
:spear (rooms/make-entity :spear (assoc (texture "outside-jail/spear.png") :spear (rooms/make-entity :spear (assoc (texture "outside-jail/spear.png")
:x 60 :y 65 :baseline 180 :x 60 :y 65 :baseline 180
:script (actions/get-script entities (grab-spear entities)))) :script (actions/get-script entities (grab-spear entities))))
@@ -221,7 +223,6 @@
:start-pos [145 15] :start-pos [145 15]
:apply-state (fn [entities] :apply-state (fn [entities]
(as-> entities entities (as-> entities entities
(assoc-in entities [:room :entities :axe] (get-in entities [:room [:axe (get-in entities [:state :time])]]))
(if (= :night (get-in entities [:state :time])) (if (= :night (get-in entities [:state :time]))
(make-night entities) (make-night entities)
entities) entities)

View File

@@ -647,7 +647,7 @@ void main()
(update-fn screen entities) (update-fn screen entities)
entities)) entities))
(defn render-parallax [{:keys [^OrthographicCamera camera ^Stage renderer ^ShaderProgram shader] :as screen} {:keys [parallax] :as e }] (defn render-parallax [{:keys [^OrthographicCamera camera ^Stage renderer ^ShaderProgram shader] :as screen} {:keys [parallax ^float multiply-amount ^float hue-amount] :as e }]
(let [tmp (Vector3.) (let [tmp (Vector3.)
tmp2 (Vector3.) tmp2 (Vector3.)
@@ -670,7 +670,10 @@ void main()
(.begin batch) (.begin batch)
(.setProjectionMatrix batch parallax-combined) (.setProjectionMatrix batch parallax-combined)
(.setShader batch shader)
(when shader
(.setUniformf shader "multiply_amount" (float (or multiply-amount 1.0)))
(.setUniformf shader "hue_amount" (float (or hue-amount 1.0))))
(.setColor batch (color (:r e 1.0) (:g e 1.0) (:b e 1.0) (:opacity e 1.0))) (.setColor batch (color (:r e 1.0) (:g e 1.0) (:b e 1.0) (:opacity e 1.0)))