feat(drawable): apply opacity.

This commit is contained in:
Kazhnuz 2021-09-03 11:12:25 +02:00
parent 4a84d2dc53
commit 959fd99ba4

View file

@ -23,7 +23,9 @@ function DrawableElement:parseOrigin(origin, size)
end
function DrawableElement:draw()
love.graphics.setColor(1, 1, 1, self.opacity)
love.graphics.draw(self.drawable, self.x,self.y,self.r,self.sx,self.sy,self.ox,self.oy)
love.graphics.setColor(1, 1, 1, 1)
end
return DrawableElement