sonic-radiance/sonic-radiance.love/scenes/overworld/actors/teleport.lua

16 lines
440 B
Lua
Raw Normal View History

2021-04-03 00:04:22 +02:00
local cwd = (...):gsub('%.teleport$', '') .. "."
local Gizmo = require(cwd .. "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