scenes/levels: use love 11 color descriptions
This commit is contained in:
parent
0354f977da
commit
4adcb37395
|
@ -1,5 +1,5 @@
|
|||
function Level:draw(dt)
|
||||
love.graphics.setColor(255, 255, 255, 255) -- On reset la couleur.
|
||||
love.graphics.setColor(1, 1, 1, 1) -- On reset la couleur.
|
||||
|
||||
-- Ona attache puis détache la caméra pour dessiner le monde, afin que celui
|
||||
-- reste "fixe" tandis que le jouer bouge.
|
||||
|
@ -49,7 +49,7 @@ function Level:drawHUD(dt)
|
|||
|
||||
love.graphics.printf( utils.math.numberToString(self.score, 6), 373, 10, 96, "right")
|
||||
love.graphics.printf( utils.math.numberToString(self.gold, 4), 373, 25, 96-18, "right")
|
||||
love.graphics.setColor(255, 255, 85)
|
||||
love.graphics.setColor(1, 1, 85/256)
|
||||
love.graphics.printf( "G", 373, 25, 96, "right")
|
||||
utils.graphics.resetColor()
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue