fix(examples): adapt to the new hitbox system

This commit is contained in:
Kazhnuz 2019-06-22 19:28:28 +02:00
parent 8c1e9d8e05
commit b770253cb5

View file

@ -62,10 +62,16 @@ end
function Player:collisionResponse(collision)
if collision.other.type == "coin" then
collision.other:takeCoin(self)
collision.other.owner:takeCoin(self)
end
end
function Player:draw()
Player.super.draw(self)
self:drawMainHitbox()
utils.graphics.resetColor()
end
function Player:drawHUD(id)
love.graphics.print(id .. " test", 4, 4)
end