Made the example work properly with Love 11.0

This commit is contained in:
Justin van der Leij 2018-04-04 12:46:37 +02:00
parent a11cb94aaa
commit 01e97c8072
2 changed files with 3 additions and 3 deletions

View file

@ -1,6 +1,6 @@
function love.conf(t)
t.identity = "Platformer"
t.version = "0.10.2"
t.version = "11.0"
t.console = true
t.window.vsync = false

View file

@ -99,7 +99,7 @@ for i = 1, 100 do
e:give(Rectangle, love.math.random(5, 20), love.math.random(5, 20))
if love.math.random(0, 1) == 0 then
e:give(Color, love.math.random(0, 255), love.math.random(0, 255), love.math.random(0, 255), 255)
e:give(Color, love.math.random(), love.math.random(), love.math.random(), 1)
end
Game:addEntity(e)
@ -111,7 +111,7 @@ for i = 1, 100 do
e:give(Circle, love.math.random(5, 20))
if love.math.random(0, 1) == 0 then
e:give(Color, love.math.random(0, 255), love.math.random(0, 255), love.math.random(0, 255), 255)
e:give(Color, love.math.random(), love.math.random(), love.math.random(), 1)
end
Game:addEntity(e)