scenes/levels: fix background color
This commit is contained in:
parent
293e0e1c45
commit
0472d56397
|
@ -29,8 +29,8 @@ function Level:drawMap()
|
|||
end
|
||||
|
||||
function Level:drawBackgroundColor()
|
||||
local r, g, b = self.backcolor
|
||||
love.graphics.setColor(r, g, b)
|
||||
local r, g, b = self.backcolor[1], self.backcolor[2], self.backcolor[3]
|
||||
love.graphics.setColor(r/256, g/256, b/256)
|
||||
love.graphics.rectangle("fill", 0, 0, 480, 272)
|
||||
utils.graphics.resetColor()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue