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

17 lines
406 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")
Obj.index = {}
Obj.index["player"] = Obj.Player
2021-03-20 17:23:14 +01:00
Obj.index["gizmo"] = Obj.Gizmo
Obj.collisions = {}
Obj.collisions["wall"] = require(cwd .. "wall")
2021-03-20 17:23:14 +01:00
Obj.collisions["gizmo-collision"] = Obj.Gizmo
return Obj