I am making an 2D mining game, and i want to draw the map with two for loops. It would look something like this:
for(int y = 0; y < height; y++){
for(int x = 0; x < width; x++){
//create map chunk
}
}
I know that is incorrect syntax for lua (it is actually c++ syntax). I don't know if there is a way to use for loops like this in lua. Also if there is another way to accomplish the same task without manually drawing out each chunk, that would be very helpful. Thanks