function init()	
	level = GetStringParam("level", "main.xml")
	spawn = GetStringParam("spawn", "spawn2")
	pad = FindShape("pad")
	SetTag(pad, "interact", "Return to home")
end


function tick()
	if GetPlayerInteractShape() == pad and InputPressed("interact") then
		StartLevel("level1", "MOD/" .. level,"" .. spawn)
	end
end
