epervier-old/examples/gameplay/moveplayer/actors/parent.lua

13 lines
280 B
Lua

local Base = require "gamecore.modules.world.actors.actor2D"
local Parent = Base:extend()
function Parent:new(world, type, x, y, w, h)
self.scene = world.scene
Parent.super.new(self, world, type, x, y, w, h)
end
function Parent:draw()
self:drawHitbox()
end
return Parent