2019-07-16 10:53:02 +02:00
|
|
|
local Obj = {}
|
|
|
|
|
|
|
|
-- On charge toutes les différentes types d'acteurs
|
|
|
|
local cwd = (...):gsub('%.init$', '') .. "."
|
2019-07-20 16:55:06 +02:00
|
|
|
Obj.Player = require(cwd .. "player")
|
|
|
|
Obj.Box = require(cwd .. "box")
|
2019-07-20 17:46:40 +02:00
|
|
|
Obj.Coin = require(cwd .. "coin")
|
|
|
|
Obj.GFX = require("gamecore.modules.world.actors.gfx3D")
|
2019-07-16 10:53:02 +02:00
|
|
|
|
|
|
|
Obj.index = {}
|
|
|
|
Obj.index["player"] = Obj.Player
|
2019-07-20 16:55:06 +02:00
|
|
|
Obj.index["box"] = Obj.Box
|
2019-07-20 17:46:40 +02:00
|
|
|
Obj.index["coin"] = Obj.Coin
|
2019-07-16 10:53:02 +02:00
|
|
|
|
|
|
|
Obj.collisions = {}
|
|
|
|
Obj.collisions["wall"] = require(cwd .. "wall")
|
|
|
|
|
|
|
|
return Obj
|