October 24, 2021, 09:53:49


Roguelike map generator (preview)
Roguelike map generator (preview)
Previous Image | Next Image
Description: Spend most of the day yesterday working on this map generator with procedural tiles. I was reading through a book I got recently and it had some interesting tips. One was about using the bitwise operators to place the tiles. This took me a while to get right but I think I will be using this bitwise method in the future.

Basically it works like this :
x = the tile you want to place. You add up the numbers around that one if there is a wall there. You then get unique tile numbers. So with only a tile above and right would be 1+2=3 (tile number 3)

The levels are made up of rectangles and a set of lines with corridors. All islands are removed so every part of the map is reachable.

A video with more levels is here :

Picture Stats:
Views: 6610
Filesize: 721.75kB
Height: 768 Width: 1366
Posted by: Pakz at July 23, 2017, 04:00:57

Comments (0)

Powered by: SMF Gallery
SimplePortal 2.3.6 © 2008-2014, SimplePortal