Part 1 covers Bresenham’s line algorithm for use in a roguelike.

Article by Richard Davey. Posted on 17th Dec 2015.   @phaser_


From Emanuele Feronato: "I love roguelike games. From the simple ASCII games to more complex turn based games like Sproggiwood. I also made some blog posts about roguelike games. One of the features a good roguelike game should have is dynamic light and shadows, as well as a “fog of war” effect.

Although it may seem complex, I’ll show you this feature in a way you will find it a lot easier than it seems. I will use a logic similar to the one used in the creation of a survival horror game, but this time we are dealing with tiles.

In this first step, we’ll see the algorithm which will be the core of dynamic lights in tile based environments: Bresenham’s line algorithm."

Read More