actually, i start the map completely filled with wall blocks, then i have a function start where the player would start, and then it loops about 1000 blocks moving in random directions changing them to walkable floor. to make a bigger map i just run that script twice.
So how do you generate maps? I suspect you just take out random chunks and then use a pathfinding mechanism to see if you can actually reach the end, and if not you try again?
actually, i start the map completely filled with wall blocks, then i have a function start where the player would start, and then it loops about 1000 blocks moving in random directions changing them to walkable floor. to make a bigger map i just run that script twice.
vamori 3 months ago
So how do you generate maps? I suspect you just take out random chunks and then use a pathfinding mechanism to see if you can actually reach the end, and if not you try again?
victorkoenders 3 months ago