fix: place correctly rings sparkles

Fixes #94
This commit is contained in:
Kazhnuz 2021-04-23 10:26:03 +02:00
parent e5d8a7f874
commit e172285410
2 changed files with 1 additions and 2 deletions

View file

@ -8,7 +8,6 @@ function GFX:new(world, x, y, spritename)
GFX.super.new(self, world, "gfx", x - (width/2), y - (height/2), width, height) GFX.super.new(self, world, "gfx", x - (width/2), y - (height/2), width, height)
self:setSprite(spritename) self:setSprite(spritename)
self:cloneSprite() self:cloneSprite()
print(self.x, self.y, spritename)
end end
function GFX:animationEnded(animation) function GFX:animationEnded(animation)

View file

@ -17,7 +17,7 @@ end
function Ring:action() function Ring:action()
self.assets.sfx["ring"]:play() self.assets.sfx["ring"]:play()
game.loot.rings = game.loot.rings + 1 game.loot.rings = game.loot.rings + 1
self.world.obj.GFX(self.world, self.x + 16, self.y + 12, "sparkles") self.world.obj.GFX(self.world, self.x + 16, self.y + 8, "sparkles")
end end
return Ring return Ring