sonic-radiance/sonic-radiance.love/game/modules/world/actors/parent.lua

19 lines
422 B
Lua
Raw Permalink Normal View History

2019-07-26 19:39:32 +02:00
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)
2019-07-27 20:55:00 +02:00
--self:drawMainHitbox()
end
function Parent:drawShadow(x, y)
2019-07-27 21:02:33 +02:00
self.assets.images["shadow"]:draw(x-4, y+4)
2019-07-26 19:39:32 +02:00
end
return Parent