From Emanuele Feronato: "I wanted to try a real world example of my dynamic light and shadows in tile based roguelike games, so let’s make a small recap then I am diving into the code:
In first step I introduced Bresenham algorithm to draw a line between two points in a tile based environment.
In step 2 with the same concept I showed you how to draw a circle in a tile based environment.
In step 3 I connected all tiles along the circumference with the player using Bresenham line, stopping the line if it hits a wall.
Today I am showing you a little example in a randomly generated dungeon. The code to generate the dungeon is taken from here and although it does not generate the best dungeons ever, it works so why not?"
If you wish to post comments on our site, you'll need an account. Please login or register.
Login Register