WIP: new-cbs #117

Closed
kazhnuz wants to merge 23 commits from new-cbs into master
Showing only changes of commit b4f7cdb44b - Show all commits

View file

@ -13,8 +13,13 @@ FighterParent:implement(Movements)
FighterParent:implement(Sprites)
FighterParent:implement(Abstract)
function FighterParent:new(world, x, y, w, h, d, fighterType)
FighterParent.super.new(self, world, fighterType, x, y, 0, w, h, d, true)
function FighterParent:new(world, x, y, fighterType)
self.abstract = self:getAbstract()
local w, h, d = self:getFighterHitbox()
local z = self:getStartZ()
FighterParent.super.new(self, world, fighterType, x, y, z, w, h, d, true)
self.defaultDir = self.defaultDir or -1
self:initMovements()
self:initActions()