Code: Select all
function background.draw()
if player.actual_level == 0 then
love.graphics.setColor(52,73,94,255)
love.graphics.rectangle("fill", 0, roof, 1280, 720)
love.graphics.setColor(243, 156, 18, background.alpha)
love.graphics.circle("fill", background.moon_x, 300 + roof, 300)
end
if player.actual_level == 1 then
love.graphics.setColor(255,255,255,255)
love.graphics.draw(bg, background.posx , roof)
love.graphics.draw(bg, background.posx - 1280 , roof)
end
if player.actual_level == 2 then
love.graphics.setColor(52,152,219,255)
love.graphics.rectangle("fill", 0, roof, 1280, 720)
love.graphics.setColor(230,126,34, background.alpha)
love.graphics.rectangle("fill", 0, roof, 1280, 720)
love.graphics.setColor(255,255,255,255)
love.graphics.draw(bg_2a, 0 , roof)
love.graphics.setColor(multiplyChannels(255, 255, 255, alphabg_2a))
love.graphics.draw(bg_2b, 0, roof)
end
if player.actual_level == 3 then
end
end