diff --git a/sonic-radiance.love/game/modules/world/actors/init.lua b/sonic-radiance.love/game/modules/world/actors/init.lua index 43f562d..5e8e7c0 100644 --- a/sonic-radiance.love/game/modules/world/actors/init.lua +++ b/sonic-radiance.love/game/modules/world/actors/init.lua @@ -10,6 +10,7 @@ Obj.index["player"] = Obj.Player Obj.collisions = {} Obj.collisions["wall"] = require(cwd .. "wall") Obj.collisions["invisible"] = require(cwd .. "invisible") -Obj.collisions["floor"] = require(cwd .. "floor") +Obj.collisions["floor"] = require(cwd .. "floor") +Obj.collisions["textured"] = require(cwd .. "textured") return Obj diff --git a/sonic-radiance.love/game/modules/world/actors/textured.lua b/sonic-radiance.love/game/modules/world/actors/textured.lua new file mode 100644 index 0000000..000bc4e --- /dev/null +++ b/sonic-radiance.love/game/modules/world/actors/textured.lua @@ -0,0 +1,14 @@ +local Base = require "core.modules.world.actors.actor3D" +local Textured = Base:extend() + +function Textured:new(world, x, y, z, w, h, d, top, bottom) + Textured.super.new(self, world, "wall", x, y, z, w, h, d, true) + self:setDebugColor(0,0,0) + self.boxes.Textured(self, w, h, d, top, bottom) +end + +function Textured:update(dt) + +end + +return Textured