Fix typo
parent
cac836c793
commit
6d74bedd83
4
main.lua
4
main.lua
|
@ -60,12 +60,12 @@ function love.draw()
|
|||
oldw, oldh = love.graphics.getWidth, love.graphics.getHeight
|
||||
love.graphics.getWidth, love.graphics.getHeight = getw, geth
|
||||
|
||||
cofnig.screens[state.currentScreen].render()
|
||||
config.screens[state.currentScreen].render()
|
||||
|
||||
if state.transitioning then
|
||||
-- Render next screen into canvas and fade accordingly
|
||||
secondaryCanvas:renderTo(config.screens[state.currentScreen % #config.screens + 1].render)
|
||||
love.graphics.setColor(255, 255, 255, 255 * (state.stateCounter / state.transitionTime)) -- red, green, blue, opacity (this would be white with 20% opacity)
|
||||
love.graphics.setColor(255, 255, 255, 255 * (state.stateCounter / config.transitionTime)) -- red, green, blue, opacity (this would be white with 20% opacity)
|
||||
love.graphics.draw(secondaryCanvas, 0, 0)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue