This code will teleport the player (based on the current screen exit) once the level has been beaten. Works for goal tapes, orbs, bosses or really anything that sets the end level timer (except keyholes). Check out the asm file for info and possible options.
Requested by Smibbix.
v1.1: Fixed various issues, made compatible with vanilla mode 7 bosses.