2020-08-01 16:57:12 +02:00
|
|
|
local Base = require "core.modules.world.actors.actor2D"
|
|
|
|
local Parent = Base:extend()
|
|
|
|
|
|
|
|
function Parent:new(world, type, x, y, w, h, isSolid)
|
|
|
|
self.scene = world.scene
|
|
|
|
Parent.super.new(self, world, type, x, y, w, h, isSolid)
|
2020-08-01 18:54:12 +02:00
|
|
|
self.charDir = "down"
|
|
|
|
self.charset = self.world.scene.charsetManager
|
2020-08-01 16:57:12 +02:00
|
|
|
end
|
|
|
|
|
|
|
|
function Parent:draw()
|
|
|
|
love.graphics.rectangle("fill", math.floor(self.x), math.floor(self.y), self.w, self.h)
|
|
|
|
end
|
|
|
|
|
|
|
|
return Parent
|