Fungeoneer

Answer to Chapter 12: Geomancer

You leave the dungeon after 31027 ticks.

From here, you can return to the dungeon or continue to the afterworld.