diff --git a/src/play_clj/core_graphics.clj b/src/play_clj/core_graphics.clj index e27f89c..66a2b59 100644 --- a/src/play_clj/core_graphics.clj +++ b/src/play_clj/core_graphics.clj @@ -490,7 +490,9 @@ with the tiled map file at `path` and `unit` scale. (let [^Batch batch (.getBatch renderer)] (.begin batch) (doseq [entity entities] - (e/draw! entity screen batch)) + (.setColor batch (color 1 1 1 (or (:opacity entity) 1.0))) + (e/draw! entity screen batch) + (.setColor batch (color 1 1 1 1))) (.end batch)) entities)