sonic-radiance/sonic-radiance.love/scenes/overworld/actors/teleport.lua
2021-04-10 14:43:30 +02:00

15 lines
No EOL
406 B
Lua

local Gizmo = require "scenes.overworld.actors.gizmo"
local Teleporter = Gizmo:extend()
function Teleporter:new(world, x, y, w, h)
Teleporter.super.new(self, world, x, y, w, h, nil)
end
function Teleporter:applyProperties()
Teleporter.super.applyProperties(self)
self.event = {
{"teleport", "", self.properties.area, self.properties.x, self.properties.y},
}
end
return Teleporter