36 ms·
The blog post talks about minimizing count(rects) but the in-game comment only mentions having better than one rect per floor tile. This second requirement is
by Danieru 13y ago
The blog post talks about minimizing count(rects) but the in-game comment only mentions having better than one rect per floor tile.
This second requirement is much simpler. One only needs to merge a single two rects into one rect to fulfil it. I assume this is a bug?
Edit: Sorry I didn't read the original post well enough the first time. It gives the more practical goal of 40 rects or less.
- nwinter 13y agoI'll change the default code comments. We were much less ambitious before our playtesters blew my algorithm out of the water.