sonic-radiance/sonic-radiance.love/scenes/overworld/actors/init.lua

29 lines
858 B
Lua
Raw Normal View History

local Obj = {}
-- On charge toutes les différentes types d'acteurs
local cwd = (...):gsub('%.init$', '') .. "."
Obj.Player = require(cwd .. "player")
2021-03-20 17:23:14 +01:00
Obj.Gizmo = require(cwd .. "gizmo")
2021-03-22 21:15:33 +01:00
Obj.Ring = require(cwd .. "ring")
Obj.ItemBox = require(cwd .. "itembox")
Obj.RingBox = require(cwd .. "ringbox")
Obj.Encounter = require(cwd .. "encounter")
2021-04-03 00:04:22 +02:00
Obj.Teleporter = require(cwd .. "teleport")
2021-04-05 16:29:51 +02:00
Obj.PNJ = require(cwd .. "pnj")
Obj.index = {}
Obj.index["player"] = Obj.Player
2021-03-20 17:23:14 +01:00
Obj.index["gizmo"] = Obj.Gizmo
2021-03-22 21:15:33 +01:00
Obj.index["ring"] = Obj.Ring
Obj.index["itembox"] = Obj.ItemBox
Obj.index["ringbox"] = Obj.RingBox
Obj.index["encounter"] = Obj.Encounter
2021-04-03 00:04:22 +02:00
Obj.index["teleporter"] = Obj.Teleporter
2021-04-05 16:29:51 +02:00
Obj.index["pnj"] = Obj.PNJ
Obj.collisions = {}
Obj.collisions["wall"] = require(cwd .. "wall")
2021-03-20 17:23:14 +01:00
Obj.collisions["gizmo-collision"] = Obj.Gizmo
return Obj