16 lines
406 B
Lua
16 lines
406 B
Lua
local Obj = {}
|
|
|
|
-- On charge toutes les différentes types d'acteurs
|
|
local cwd = (...):gsub('%.init$', '') .. "."
|
|
Obj.Player = require(cwd .. "player")
|
|
Obj.Gizmo = require(cwd .. "gizmo")
|
|
|
|
Obj.index = {}
|
|
Obj.index["player"] = Obj.Player
|
|
Obj.index["gizmo"] = Obj.Gizmo
|
|
|
|
Obj.collisions = {}
|
|
Obj.collisions["wall"] = require(cwd .. "wall")
|
|
Obj.collisions["gizmo-collision"] = Obj.Gizmo
|
|
|
|
return Obj
|