It's funny to think about; if you cast rays around the player with a limited distance, but alter the visibility of a character on the screen instead of drawing a new line to represent part of a wall, suddenly you're looking at Nethack's visibility logic. There's a lot here that applies to way more than just shooters.