chore(cbs): refactor parent a bit
This commit is contained in:
parent
d1070b36cc
commit
7d182bd3a1
1 changed files with 12 additions and 3 deletions
|
@ -2,6 +2,9 @@ local Parent = Object:extend() -- On créer la classe des entitées, c'est la cl
|
|||
|
||||
local maputils = require "scenes.battlesystem.utils"
|
||||
|
||||
-- INIT FUNCTION
|
||||
-- Initilize the actor
|
||||
|
||||
function Parent:new(world, x, y, z)
|
||||
self.depth = 0
|
||||
self.x = x
|
||||
|
@ -28,6 +31,13 @@ function Parent:register()
|
|||
self.world:registerActor(self)
|
||||
end
|
||||
|
||||
function Parent:update(dt)
|
||||
-- lol
|
||||
end
|
||||
|
||||
-- SPRITE FUNCTIONS
|
||||
-- Handle the character sprite
|
||||
|
||||
function Parent:setSprite(name, ox, oy, active)
|
||||
self.sprite = {}
|
||||
|
||||
|
@ -50,9 +60,8 @@ function Parent:drawSprite(tx, ty)
|
|||
end
|
||||
end
|
||||
|
||||
function Parent:update(dt)
|
||||
-- lol
|
||||
end
|
||||
-- DRAW FUNCTIONS
|
||||
-- Handle draw functions
|
||||
|
||||
function Parent:draw()
|
||||
|
||||
|
|
Loading…
Reference in a new issue