epervier-old/examples/gameplay/moveplayer/actors/parent.lua
Kazhnuz ea5011642c modules/world: add a basic solidity system
It'll make easier the solidity system and will reserve custom filter to 
specific objects.
2019-04-25 17:54:51 +02:00

13 lines
298 B
Lua

local Base = require "gamecore.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)
end
function Parent:draw()
self:drawHitbox()
end
return Parent