From 2549f632cd1cdc5b02d9c0fe3f2abed1438ef5ec Mon Sep 17 00:00:00 2001 From: Remington Covert Date: Wed, 17 Sep 2014 12:29:20 -0700 Subject: [PATCH] making alpha work. --- src/play_clj/core_graphics.clj | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)