mirror of
https://github.com/Keyslam-Group/Concord.git
synced 2025-09-02 04:13:58 -04:00
Removed .init
This commit is contained in:
parent
6ddb28ffbc
commit
39ec2106b7
6 changed files with 22 additions and 110 deletions
|
@ -1,12 +1,10 @@
|
|||
local Concord = require("lib").init({
|
||||
useEvents = true
|
||||
})
|
||||
local Concord = require("lib")
|
||||
|
||||
local Entity = Concord.entity
|
||||
local Component = Concord.component
|
||||
local System = Concord.system
|
||||
|
||||
local Game = Concord.instance()
|
||||
Concord.addInstance(Game)
|
||||
|
||||
local Position = Component(function(e, x, y)
|
||||
e.x = x
|
||||
|
@ -118,3 +116,12 @@ for _ = 1, 100 do
|
|||
|
||||
Game:addEntity(e)
|
||||
end
|
||||
|
||||
|
||||
function love.update(dt)
|
||||
Game:emit("update", dt)
|
||||
end
|
||||
|
||||
function love.draw()
|
||||
Game:emit("draw")
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue