Here it is in a more readable form
dim world(9,9)
restore worlddata:
for indexY=0 to 9
for indexX=0 to 9
read tilenum
world(indexX,indexY)=tilenum
next indexX
next indexY
for indexY=0 to 9
for indexX=0 to 9
text indexX*10,indexy*10,str$(world(indexX,indexY))
next indexX
next indexY
suspend for key
worlddata:
`layer 0
data 0,0,0,1,1,1,1,0,0,0
data 0,0,1,0,0,0,0,1,0,0
data 0,1,0,0,0,0,0,0,1,0
data 1,0,2,2,0,0,2,2,0,1
data 1,0,2,2,0,0,2,2,0,1
data 1,0,0,0,0,0,0,0,0,1
data 1,0,3,0,0,0,0,3,0,1
data 0,1,0,3,3,3,3,0,1,0
data 0,0,1,0,0,0,0,1,0,0
data 0,0,0,1,1,1,1,0,0,0
And once more in colour:
dim world(9,9)
box 0,10,20,20
ink 56000,0
box 10,10,20,20
ink 99999,0
box 20,10,30,20
ink 4990000,0
box 30,10,40,20
get image 1,10,10,20,20
get image 2,20,10,30,20
get image 3,30,10,40,20
paste image 2,100,100
cls
restore worlddata:
for indexY=0 to 9
for indexX=0 to 9
read tilenum
world(indexX,indexY)=tilenum
next indexX
next indexY
for indexY=0 to 9
for indexX=0 to 9
if world(indexX,indexY)>0
paste image world(indexX,indexY),indexX*10,indexY*10
endif
next indexX
next indexY
suspend for key
worlddata:
`layer 0
data 0,0,0,1,1,1,1,0,0,0
data 0,0,1,0,0,0,0,1,0,0
data 0,1,0,0,0,0,0,0,1,0
data 1,0,2,2,0,0,2,2,0,1
data 1,0,2,2,0,0,2,2,0,1
data 1,0,0,0,0,0,0,0,0,1
data 1,0,3,0,0,0,0,3,0,1
data 0,1,0,3,3,3,3,0,1,0
data 0,0,1,0,0,0,0,1,0,0
data 0,0,0,1,1,1,1,0,0,0