Im developing 2d isometric game. You driving car on city, thats all. The issue is generating random maps with connected roads. I would like to write script - i think i will be able to - but i cant find an idea for alghoritm itself. Lets say i have 100x100 map, and i would like to build boolean table 1 is road 0 is not road.
As far i have solution that is drawing random number of lines (4-8 for ex) in horizontal and same vertical. But this road map is straight.
Can u share some ideas? Any will help
Aucun commentaire:
Enregistrer un commentaire