Closed BeyondXinXin closed 1 year ago
Hmm...how huge? :)
80 * 80
80 * 80 is not that big...let me check!
I believe this happened due to a nasty indexing overflow bug. However, I also eliminated the tail recursion and this now worked with 1000 * 1000 (a million) tiles:
e9d7719a9a26cae60aa9636c30f260ead8bb3e3b
Should be big enough!
I tried to use the editor to generate a map, and the software flashed back. What I traced back is flood filled recursive function causing stack overflow. It should not generate a huge canvas, I don't know if it is necessary to modify it.