This test uses procedural raycasting to detect the player. Only one sprite reflects the ray cast, so it's semi-optimized. Press space to hide the variables.