2019-04-07 17:00:47 +02:00
|
|
|
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()
|
2019-04-07 22:29:27 +02:00
|
|
|
utils.graphics.box(self.x, self.y, self.w, self.h)
|
2019-04-07 17:00:47 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
return Parent
|