making alpha work.

This commit is contained in:
2014-09-17 12:29:20 -07:00
parent fd16a41cce
commit 2549f632cd

View File

@@ -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)