epervier-old/examples/scenes/basic/test_scene2/actors/parent.lua
2020-04-05 18:18:13 +02:00

17 lines
355 B
Lua

local Base = require "birb.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:update(dt)
end
function Parent:draw()
love.graphics.rectangle("fill", self.x, self.y, self.w, self.h)
end
return Parent