oh boy, this could take some time.
Quote: "So how do i know what tile 1,5 would be?"
Because you set the value of tile 1,5. In your DATA. Take a look at the code below.
The FOR loop for 'X' will read a 1 row of DATA each time through. Once it's read all the numbers in the first row, the 'Y' FOR loop tells it to move on to the next row below.
Coordinates (3,1) is '5' in the map. (3rd digit in the 1st row)
Coordinates (2,3) is '7' in the map. (2nd digit in the 3rd row)
See how this works?
rows = 10
columns = 5
dim map(columns, rows)
for y = 1 to rows
for x = 1 to columns
read map(x,y)
next x
next y
DATA 1,1,5,1
DATA 1,2,1,1
DATA 1,7,3,1
DATA 1,2,3,1
DATA 1,1,1,1