I would use files. open to write / open to read commands.
files can be used in many ways.
in the file:
11111111
10010101
10000101
10110101
10100001
11111111
in the program:
height = 6
width = 8
obj = 0
open to read 1,"map.txt"
for y = 1 to height
`read string
read string 1,string$
`find characters
for x = 1 to width
char$ = mid$(string$, x)
`if 1 then make wall
select char$
case "1"
inc obj
make object cube obj,5
position object obj, 2.5 + (x*5), 2.5, (height*5) - (y*5) - 2.5
endcase
endselect
next x
next y
close file 1
Or maybe like this:
in the file:
2.5
2.5
3
7.5
7.5
2
3.5
7.5
4
and in the program:
obj = 0
open to read 1,"map.txt"
repeat
read float 1,posx#
read float 1,posz#
read float 1,size#
inc obj
make object cube obj,size#
position object obj,posx#,size#/2,posz#
until file end() = 1
close file 1
Cheers.
Immunity and Annihalation makes Immunihalation...