Creating a table for an isometric game....

Hello…

I have a layout of tiles.

128X64… and images rock1.png and grass1.png

I use a loop to layout my map for an isometric game…

for i = 1, 20 do  

    – here I display the tiles rock1.png

end

for j = 1, 16 do

    – here I display the grass1.png

end

So I have a checkerboard of rock and grass

QUESTION


how can I make a table or simething

to actually form “roads” “lakes” “mountains” “streets”

like

local tableMap = { }

[1] = rock1

[2] = rock1

[3] = grass1

… and so on

the idea is to put the tiles in certain order to make my actual city map

thanks.

A nested table. Like this :

local tableMap = {  { name = 'rock1', image1 = 'rock1.png', },  { name = 'grass1', image1 = 'grass1.png', }, }

A nested table. Like this :

local tableMap = {  { name = 'rock1', image1 = 'rock1.png', },  { name = 'grass1', image1 = 'grass1.png', }, }