0 Members and 1 Guest are viewing this topic.
[01010101]->GDB1 ;this is the tilemap in hexadecimal code.[01000001][01010001][01000001](Some sprite data to pic1 here)for(b,0,3) ;outer loop for drawing the different columnsfor(a,0,3) ;inner loop for drawing the rows{B*4+A+GDB1}->T ;gets the tile number minus 1 to T if T ;checks if a tile should be drawnT--pt-on(a*8,b*8,T*8+pic1) ;draw the tileendendend
T--If T
if TT--