I’ve been spending more time on Yendor, which you can play here: play.madcoretom.com/yendor Lighting The light levels are calculated using Dijkstra’s algorithm, based on the distance from the player. NPC pathfinding can also use this data to find the direction to walk towards the player Room Generation There are a number of room types, which are constrained by […]