2021-04-10 14:43:30 +02:00
|
|
|
local Gizmo = require "scenes.overworld.actors.gizmo"
|
2021-03-22 21:15:33 +01:00
|
|
|
local Ring = Gizmo:extend()
|
|
|
|
|
|
|
|
local overrides = {
|
|
|
|
["isSolid"] = false,
|
|
|
|
["charset"] = "item1",
|
|
|
|
["charId"] = 2,
|
|
|
|
["destroy"] = "temp",
|
|
|
|
["needButton"] = false,
|
|
|
|
["isTurning"] = true,
|
|
|
|
}
|
|
|
|
|
|
|
|
function Ring:new(world, x, y)
|
|
|
|
Ring.super.new(self, world, x, y, 16, 16, overrides)
|
|
|
|
end
|
|
|
|
|
|
|
|
function Ring:action()
|
|
|
|
self.assets.sfx["ring"]:play()
|
|
|
|
game.loot.rings = game.loot.rings + 1
|
2021-04-21 21:14:45 +02:00
|
|
|
self.world.obj.GFX(self.world, self.x + 16, self.y + 12, "sparkles")
|
2021-03-22 21:15:33 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
return Ring
|