feat(actors): add an invisible wall object

This commit is contained in:
Kazhnuz 2019-07-27 11:33:52 +02:00
parent 2f7720d3bb
commit 87ca89364d
2 changed files with 15 additions and 1 deletions

View file

@ -8,6 +8,7 @@ Obj.index = {}
Obj.index["player"] = Obj.Player
Obj.collisions = {}
Obj.collisions["wall"] = require(cwd .. "wall")
Obj.collisions["wall"] = require(cwd .. "wall")
Obj.collisions["invisible"] = require(cwd .. "invisible")
return Obj

View file

@ -0,0 +1,13 @@
local Base = require "core.modules.world.actors.actor3D"
local Invisible = Base:extend()
function Invisible:new(world, x, y, z, w, h, d)
Invisible.super.new(self, world, "wall", x, y, z, w, h, d, true)
self:setDebugColor(0,0,0)
end
function Invisible:update(dt)
end
return Invisible