step up: find the fade out.
see the game fades out when you go into a door. find where that code is, then see what gets called next.
finding a fade out should be easy: look for when they reprogram the VGA palette registers to dim every color to black.