parent
e5d8a7f874
commit
e172285410
2 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
|
@ -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
|
Loading…
Reference in a new issue