26 lines
797 B
Lua
26 lines
797 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.Encounter = require(cwd .. "encounter")
|
|
Obj.Teleporter = require(cwd .. "teleport")
|
|
|
|
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.index["encounter"] = Obj.Encounter
|
|
Obj.index["teleporter"] = Obj.Teleporter
|
|
|
|
Obj.collisions = {}
|
|
Obj.collisions["wall"] = require(cwd .. "wall")
|
|
Obj.collisions["gizmo-collision"] = Obj.Gizmo
|
|
|
|
return Obj
|