14 lines
317 B
Lua
14 lines
317 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()
|
||
|
utils.graphics.drawBox(self.x, self.y, self.w, self.h)
|
||
|
end
|
||
|
|
||
|
return Parent
|