So I've been messing around with island generation and i do have on that works. However if I try and generate an island after certain x and y values it says it generated but does not draw on screen? I do not know if I have accidentally made a limiting factor for x/y values perhaps?
Feel free to request code or have a look at the code (generation is in noise.lua)
I've tried to fix this for god knows how long and I'm in need of help
The # operator isn't guaranteed to work unless the arrays start in 1. I think LuaJIT is more forgiving about not starting exactly with 1, but not as much as 1000 times more forgiving.
The problem seems to be in the iteration limit for the drawing loop. Changing it to this worked for me:
pgimeno wrote: ↑Sat Feb 02, 2019 8:09 pm
The # operator isn't guaranteed to work unless the arrays start in 1. I think LuaJIT is more forgiving about not starting exactly with 1, but not as much as 1000 times more forgiving.
The problem seems to be in the iteration limit for the drawing loop. Changing it to this worked for me: