Heh, I had the same idea of using a roguelike vision algorithm for lighting instead. It was pretty fun to play with, and you can make some real atmospheric, creepy, dark environments. You should maybe think about adding static lights as well that get added to a player's vision when they enter a room. That would make more sense in more complex rooms, rather than these small square ones though.
@uzimonkey13 жыл бұрын
@NotoriousSpy I was running all static lights, but I was using C++ and a (supposedly) fast roguelike vision library. My map size was also locked to screen size, so the levels were not so large. I ended up abandoning this project though, since I get fed up with C++, my ex-language of choice but something I hadn't used in many years.
@NotoriousSpy13 жыл бұрын
@uzimonkey Already added. They weren't working properly when I made the video so I temporarily took them out. Also, running the algorithm on all visible lights was expensive so instead I 'baked' them into the tile's minimum light level.