epervier-old/examples/scenes/gameplay/moveplayer/actors/wall.lua

15 lines
304 B
Lua
Raw Normal View History

2020-04-05 18:18:13 +02:00
local Base = require "birb.modules.world.actors.actor2D"
2019-05-01 17:20:31 +02:00
local Wall = Base:extend()
function Wall:new(world, x, y, w, h)
Wall.super.new(self, world, "wall", x, y, w, h, true)
self:setDebugColor(0,0,0)
end
function Wall:draw()
self:drawMainHitbox()
2019-05-01 17:20:31 +02:00
utils.graphics.resetColor( )
end
return Wall