making alpha work.
This commit is contained in:
@@ -475,7 +475,9 @@ with the tiled map file at `path` and `unit` scale.
|
|||||||
(let [^Batch batch (.getBatch renderer)]
|
(let [^Batch batch (.getBatch renderer)]
|
||||||
(.begin batch)
|
(.begin batch)
|
||||||
(doseq [entity entities]
|
(doseq [entity entities]
|
||||||
(e/draw-entity! entity screen batch))
|
(.setColor batch (color 1 1 1 (or (:opacity entity) 1.0)))
|
||||||
|
(e/draw-entity! entity screen batch)
|
||||||
|
(.setColor batch (color 1 1 1 1)))
|
||||||
(.end batch))
|
(.end batch))
|
||||||
entities)
|
entities)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user