17 lines
359 B
Lua
17 lines
359 B
Lua
local Base = require "gamecore.modules.world.actors.actor2D"
|
|
local Parent = Base:extend()
|
|
|
|
function Parent:new(scene, type, x, y, w, h)
|
|
self.scene = scene
|
|
Parent.super.new(self, scene.world, type, x, y, w, h)
|
|
end
|
|
|
|
function Parent:update(dt)
|
|
|
|
end
|
|
|
|
function Parent:draw()
|
|
love.graphics.rectangle("fill", self.x, self.y, self.w, self.h)
|
|
end
|
|
|
|
return Parent
|