Sorry guys, code didn't quite work out, no worries though
here it is:
rem level 1
data 3,3,3,3,3,3,3,3,3,3
data 0,0,0,0,0,0,0,0,0,0
data 2,2,2,2,2,2,2,2,2,2
data 0,0,0,0,0,0,0,0,0,0
data 1,1,1,1,1,1,1,1,1,1
rem level 2
data 2,2,2,2,2,2,2,2,2,2
data 2,0,0,0,0,0,0,0,0,2
data 2,0,3,3,3,3,3,3,0,2
data 2,0,0,0,0,0,0,0,0,2
data 2,2,2,2,2,2,2,2,2,2
rem level 3
data 3,3,3,3,3,3,3,3,3,3
data 3,0,0,0,0,0,0,0,0,3
data 3,0,2,2,2,2,2,2,0,3
data 3,0,2,0,0,0,0,2,0,3
data 3,0,2,0,1,1,0,2,0,3
rem make block array
dim block(10,5,3)
for block_row = 1 to 5
block_xpos = 70
for block_no = 1 to 10
read block(block_no,block_row,1)
block(block_no,block_row,2) = block_xpos
block_xpos = block_xpos+50
next block_no
next block_row
PS. dont try and compile thise code its only an example!
This is in the main loop (but doesnt really matter)
for block_row = 1 to 5
for block_no = 1 to 10
if block(block_no,block_row,1) > 0
block_x = block(block_no,block_row,2)
block(block_no,block_row,3) = block_sprite
block_y = (block_row*40)-((block_row-1)*5)
block_im = block(block_no,block_row,1)+2
sprite block_sprite, block_x, block_y, block_im
block_amount = block_amount+1
endif
block_sprite = block_sprite+1
next block_no
next block_row
I'd greatly appreciate it if someone could help me
Thanks