sonic-bluestreak/sonic-bluestreak.love/game/modules/world/actors/parent.lua
2019-12-28 12:15:43 +01:00

18 lines
422 B
Lua

local Base = require "core.modules.world.actors.actor3D"
local Parent = Base:extend()
function Parent:new(world, type, x, y, z, w, h, d, isSolid)
self.scene = world.scene
Parent.super.new(self, world, type, x, y, z, w, h, d, isSolid)
end
function Parent:draw()
Parent.super.draw(self)
--self:drawMainHitbox()
end
function Parent:drawShadow(x, y)
self.assets.images["shadow"]:draw(x-4, y+4)
end
return Parent