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"
|
local maputils = require "scenes.battlesystem.utils"
|
||||||
|
|
||||||
|
-- INIT FUNCTION
|
||||||
|
-- Initilize the actor
|
||||||
|
|
||||||
function Parent:new(world, x, y, z)
|
function Parent:new(world, x, y, z)
|
||||||
self.depth = 0
|
self.depth = 0
|
||||||
self.x = x
|
self.x = x
|
||||||
|
@ -28,6 +31,13 @@ function Parent:register()
|
||||||
self.world:registerActor(self)
|
self.world:registerActor(self)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function Parent:update(dt)
|
||||||
|
-- lol
|
||||||
|
end
|
||||||
|
|
||||||
|
-- SPRITE FUNCTIONS
|
||||||
|
-- Handle the character sprite
|
||||||
|
|
||||||
function Parent:setSprite(name, ox, oy, active)
|
function Parent:setSprite(name, ox, oy, active)
|
||||||
self.sprite = {}
|
self.sprite = {}
|
||||||
|
|
||||||
|
@ -50,9 +60,8 @@ function Parent:drawSprite(tx, ty)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Parent:update(dt)
|
-- DRAW FUNCTIONS
|
||||||
-- lol
|
-- Handle draw functions
|
||||||
end
|
|
||||||
|
|
||||||
function Parent:draw()
|
function Parent:draw()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue