WIP: new-cbs #117
1 changed files with 7 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue