DEV Community

Discussion on: Hi Dev.to, I made a small desktop browser game

Collapse
 
raulmartinez profile image
Raul Martinez

Thank you Carlos. Yes the levels are all random, but the map size is always the same. The first thing that is generated is a random path from one side of the map to the other. Once the path is complete, the dark tiles will be generated randomly on any tile that is not on the path until the board is filed with 70% dark tiles.