2019-12-28 12:15:43 +01:00
|
|
|
local Obj = {}
|
|
|
|
|
|
|
|
-- On charge toutes les différentes types d'acteurs
|
|
|
|
local cwd = (...):gsub('%.init$', '') .. "."
|
|
|
|
Obj.Player = require(cwd .. "player")
|
2020-01-26 12:28:53 +01:00
|
|
|
Obj.Ring = require(cwd .. "items.ring")
|
2020-04-25 12:15:12 +02:00
|
|
|
Obj.Weapon = require(cwd .. "weapons.parent")
|
2019-12-28 12:15:43 +01:00
|
|
|
|
|
|
|
Obj.index = {}
|
|
|
|
Obj.index["player"] = Obj.Player
|
|
|
|
|
|
|
|
Obj.collisions = {}
|
2020-01-26 11:08:47 +01:00
|
|
|
Obj.collisions["wall"] = require(cwd .. "collisions.wall")
|
|
|
|
Obj.collisions["invisible"] = require(cwd .. "collisions.invisible")
|
|
|
|
Obj.collisions["floor"] = require(cwd .. "collisions.floor")
|
|
|
|
Obj.collisions["textured"] = require(cwd .. "collisions.textured")
|
2020-02-01 16:44:38 +01:00
|
|
|
Obj.collisions["fakefloor"] = require(cwd .. "collisions.fakefloor")
|
2019-12-28 12:15:43 +01:00
|
|
|
|
2020-01-26 12:28:53 +01:00
|
|
|
Obj.index = {}
|
|
|
|
Obj.index[01] = Obj.Ring
|
|
|
|
Obj.index[02] = Obj.Ring
|
|
|
|
|
2019-12-28 12:15:43 +01:00
|
|
|
return Obj
|