2021-05-05 08:30:32 +02:00
|
|
|
local Base = require "birb.modules.world.actors.actor2D"
|
2021-04-10 20:47:34 +02:00
|
|
|
local Punch = Base:extend()
|
|
|
|
|
|
|
|
function Punch:new(world, x, y, dir)
|
|
|
|
Punch.super.new(self, world, "wall", x, y, 8, 8, false)
|
|
|
|
end
|
|
|
|
|
|
|
|
function Punch:update(dt)
|
|
|
|
self.depth = -self.y
|
|
|
|
Punch.super.update(self, dt)
|
|
|
|
end
|
|
|
|
|
|
|
|
function Punch:draw()
|
|
|
|
|
|
|
|
end
|
|
|
|
|
|
|
|
return Punch
|