22 lines
625 B
Lua
22 lines
625 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.Ring = require(cwd .. "ring")
|
|
Obj.ItemBox = require(cwd .. "itembox")
|
|
Obj.RingBox = require(cwd .. "ringbox")
|
|
|
|
Obj.index = {}
|
|
Obj.index["player"] = Obj.Player
|
|
Obj.index["gizmo"] = Obj.Gizmo
|
|
Obj.index["ring"] = Obj.Ring
|
|
Obj.index["itembox"] = Obj.ItemBox
|
|
Obj.index["ringbox"] = Obj.RingBox
|
|
|
|
Obj.collisions = {}
|
|
Obj.collisions["wall"] = require(cwd .. "wall")
|
|
Obj.collisions["gizmo-collision"] = Obj.Gizmo
|
|
|
|
return Obj
|