chore(cbs): refactor parent a bit

This commit is contained in:
Kazhnuz 2019-08-14 20:11:35 +02:00
parent d1070b36cc
commit 7d182bd3a1

View file

@ -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()