I saw a game on Coolmath, and it had a pixelated style with this feature. I thought it was really cool, so I made this "lighting" project about it. It may run slow for you, given that it does lots of heavy math. Move your mouse and watch as the light illuminates different parts of the level! All art and coding by me. https://turbowarp.org/551473691