2019-07-26 19:39:32 +02:00
|
|
|
local Obj = {}
|
|
|
|
|
|
|
|
-- On charge toutes les différentes types d'acteurs
|
|
|
|
local cwd = (...):gsub('%.init$', '') .. "."
|
|
|
|
Obj.Player = require(cwd .. "player")
|
|
|
|
|
|
|
|
Obj.index = {}
|
|
|
|
Obj.index["player"] = Obj.Player
|
|
|
|
|
|
|
|
Obj.collisions = {}
|
2019-07-27 11:33:52 +02:00
|
|
|
Obj.collisions["wall"] = require(cwd .. "wall")
|
|
|
|
Obj.collisions["invisible"] = require(cwd .. "invisible")
|
2019-07-27 15:10:50 +02:00
|
|
|
Obj.collisions["floor"] = require(cwd .. "floor")
|
|
|
|
Obj.collisions["textured"] = require(cwd .. "textured")
|
2019-07-26 19:39:32 +02:00
|
|
|
|
|
|
|
return Obj
|