Answer the question
In order to leave comments, you need to log in
How to do procedural generation for a 2d roguelike on löve2d?
I use the love2d engine and the tinyKeep procedural generation algorithm , I was able to generate arbitrary rectangles in an arbitrary radius from the center, but how can I make them spread all over the map (like this, only of course without animation)?
Answer the question
In order to leave comments, you need to log in
Move them in all directions until they stop overlapping each other.
In order not to iterate over all with all, I would make the heat map as a two-dimensional array, each cell of which would store the number of rectangles above it. But not the fact that it will be so optimal in terms of speed. Like an idea.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question