2019-04-28 17:07:39 +02:00
|
|
|
local Obj = {}
|
|
|
|
|
|
|
|
-- On charge toutes les différentes types d'acteurs
|
|
|
|
local cwd = (...):gsub('%.init$', '') .. "."
|
|
|
|
|
2019-04-29 16:13:09 +02:00
|
|
|
Obj.Player = require(cwd .. "player")
|
2019-05-06 20:45:13 +02:00
|
|
|
Obj.GFX = require("gamecore.modules.world.actors.gfx2D")
|
2019-04-29 16:13:09 +02:00
|
|
|
|
2019-04-28 17:07:39 +02:00
|
|
|
Obj.index = {}
|
2019-04-29 16:13:09 +02:00
|
|
|
Obj.index["player"] = require(cwd .. "player")
|
2019-05-05 15:35:49 +02:00
|
|
|
Obj.index["coin"] = require(cwd .. "coin")
|
2019-04-28 17:07:39 +02:00
|
|
|
|
|
|
|
Obj.collisions = {}
|
2019-04-29 16:13:09 +02:00
|
|
|
Obj.collisions["wall"] = require(cwd .. "wall")
|
2019-04-28 17:07:39 +02:00
|
|
|
|
|
|
|
return Obj
|