fade colors
This commit is contained in:
@@ -29,5 +29,5 @@ function FadeInState:render()
|
||||
love.graphics.setColor(self.r, self.g, self.b, self.opacity)
|
||||
love.graphics.rectangle('fill', 0, 0, VIRTUAL_WIDTH, VIRTUAL_HEIGHT)
|
||||
|
||||
love.graphics.setColor(1/255, 1/255, 1/255, 1/255)
|
||||
love.graphics.setColor(255/255, 255/255, 255/255, 255/255)
|
||||
end
|
||||
@@ -33,5 +33,5 @@ function FadeOutState:render()
|
||||
love.graphics.setColor(self.r, self.g, self.b, self.opacity)
|
||||
love.graphics.rectangle('fill', 0, 0, VIRTUAL_WIDTH, VIRTUAL_HEIGHT)
|
||||
|
||||
love.graphics.setColor(1/255, 1/255, 1/255, 255/255)
|
||||
love.graphics.setColor(255/255, 255/255, 255/255, 255/255)
|
||||
end
|
||||
@@ -11,7 +11,7 @@ end
|
||||
function StartState:update(dt)
|
||||
if love.keyboard.wasPressed('enter') or love.keyboard.wasPressed('return') then
|
||||
gStateStack:push(FadeInState({
|
||||
r = 255/255, g = 255/255, b = 255/255
|
||||
r = 1/255, g = 1/255, b = 1/255
|
||||
}, 1,
|
||||
function()
|
||||
gSounds['intro-music']:stop()
|
||||
|
||||
Reference in New Issue
Block a user