mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 04:13:58 -04:00
Made the example work properly with Love 11.0
This commit is contained in:
parent
a11cb94aaa
commit
01e97c8072
2 changed files with 3 additions and 3 deletions
2
conf.lua
2
conf.lua
|
@ -1,6 +1,6 @@
|
||||||
function love.conf(t)
|
function love.conf(t)
|
||||||
t.identity = "Platformer"
|
t.identity = "Platformer"
|
||||||
t.version = "0.10.2"
|
t.version = "11.0"
|
||||||
t.console = true
|
t.console = true
|
||||||
|
|
||||||
t.window.vsync = false
|
t.window.vsync = false
|
||||||
|
|
4
main.lua
4
main.lua
|
@ -99,7 +99,7 @@ for i = 1, 100 do
|
||||||
e:give(Rectangle, love.math.random(5, 20), love.math.random(5, 20))
|
e:give(Rectangle, love.math.random(5, 20), love.math.random(5, 20))
|
||||||
|
|
||||||
if love.math.random(0, 1) == 0 then
|
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
|
end
|
||||||
|
|
||||||
Game:addEntity(e)
|
Game:addEntity(e)
|
||||||
|
@ -111,7 +111,7 @@ for i = 1, 100 do
|
||||||
e:give(Circle, love.math.random(5, 20))
|
e:give(Circle, love.math.random(5, 20))
|
||||||
|
|
||||||
if love.math.random(0, 1) == 0 then
|
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
|
end
|
||||||
|
|
||||||
Game:addEntity(e)
|
Game:addEntity(e)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue