Skip to content

Commit 04a2644

Browse files
authored
Merge pull request #23 from tentus/master
updates to love version 11.0
2 parents f98048f + 61e1f7d commit 04a2644

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

main.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function love.draw()
3232
splash:draw()
3333

3434
-- draw with both colors so its definetely visible
35-
love.graphics.setColor(255, 255, 255)
35+
love.graphics.setColor(1, 1, 1)
3636
love.graphics.print(current, 10, 10)
3737

3838
love.graphics.setColor(0, 0, 0)

o-ten-one/init.lua

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,16 @@ local current_folder = current_module:gsub("%.", "/")
2929
local timer = require(current_module .. ".timer")
3030

3131
local colors = {
32-
bg = {108, 190, 228},
33-
white = {255, 255, 255},
34-
blue = { 39, 170, 225},
35-
pink = {231, 74, 153},
36-
shadow = {0, 0, 0, 255/3}
32+
bg = {.42, .75, .89},
33+
white = { 1, 1, 1},
34+
blue = {.15, .67, .88},
35+
pink = {.91, .29, .6},
36+
shadow = {0, 0, 0, .33}
3737
}
3838

3939
-- patch shader:send if 'lighten' gets optimized away
4040
local function safesend(shader, name, ...)
41-
if shader:getExternVariable(name) then
41+
if shader:hasUniform(name) then
4242
shader:send(name, ...)
4343
end
4444
end
@@ -107,11 +107,11 @@ function splashlib.new(init)
107107
local big_y = -rain.spacing_y + y
108108

109109
love.graphics.setBlendMode("subtract")
110-
love.graphics.setColor(255, 255, 255, 128)
110+
love.graphics.setColor(1, 1, 1, .5)
111111
love.graphics.draw(rain.batch, -rain.spacing_x, small_y, 0, 0.5, 0.5)
112112

113113
love.graphics.setBlendMode("alpha")
114-
love.graphics.setColor(208, 208, 208, 255)
114+
love.graphics.setColor(.81, .81, .81, 1)
115115
love.graphics.draw(rain.batch, -rain.spacing_x, big_y)
116116

117117
love.graphics.draw(gradient)
@@ -340,12 +340,12 @@ function splashlib:draw()
340340
)
341341
love.graphics.pop()
342342

343-
love.graphics.setColor(255, 255, 255, 255*self.heart.scale)
343+
love.graphics.setColor(1, 1, 1, self.heart.scale)
344344
love.graphics.draw(self.heart.sprite, 0, 5, self.heart.rot, self.heart.scale, self.heart.scale, 43, 39)
345345
love.graphics.pop()
346346
end)
347347

348-
love.graphics.setColor(255, 255, 255, 255*self.alpha)
348+
love.graphics.setColor(1, 1, 1, self.alpha)
349349
love.graphics.setShader(self.maskshader)
350350
love.graphics.draw(self.canvas, 0,0)
351351
love.graphics.setShader()

0 commit comments

Comments
 (0)