scenes/levels: remove some functions with 1:1 equivalent in parents
This commit is contained in:
parent
ce59db3bde
commit
3da9c66cc9
|
@ -35,25 +35,10 @@ function Entity:initPhysics(world, collType, x, y, w, h)
|
|||
self:register()
|
||||
end
|
||||
|
||||
function Entity:setDebugColor(r,g,b)
|
||||
self.debug = {}
|
||||
self.debug.r = r
|
||||
self.debug.g = r
|
||||
self.debug.b = r
|
||||
end
|
||||
|
||||
function Entity:update(dt)
|
||||
|
||||
end
|
||||
|
||||
function Entity:register()
|
||||
self.world:registerActor(self)
|
||||
end
|
||||
|
||||
function Entity:destroy()
|
||||
self.world:removeActor(self)
|
||||
end
|
||||
|
||||
function Entity:canBounce(bounce)
|
||||
self.bounce = bounce
|
||||
end
|
||||
|
@ -101,11 +86,6 @@ function Entity:changeSpeedToCollisionNormal(nx, ny)
|
|||
self.xsp, self.ysp = xsp, ysp
|
||||
end
|
||||
|
||||
function Entity:getCenter()
|
||||
return self.x + self.w / 2,
|
||||
self.y + self.h / 2
|
||||
end
|
||||
|
||||
function Entity:purge()
|
||||
self.world:removeActor(self)
|
||||
end
|
||||
|
@ -153,8 +133,4 @@ function Entity:draw()
|
|||
-- Cette fonction en contient rien par défaut
|
||||
end
|
||||
|
||||
function Entity:drawHitbox()
|
||||
utils.graphics.box(self.x, self.y, self.w, self.h)
|
||||
end
|
||||
|
||||
return Entity
|
||||
|
|
Loading…
Reference in New Issue