0 Members and 1 Guest are viewing this topic.
.X = top left part of map to be displayed's X coordinate .Y = top left part of map to be displayed's Y coordinate.{L1} = pointer to the map appvar holding numeric values representing the tiles.{L2} = pointer to the appvar that contains the environment tiles' sprite data.the subroutine sub(DSP,x,y,ptr_to_512bit_sprite displays a 512bit (16x16 in 4 level gray) at x and y starting at the given pointer (this definately works already)Lbl DMPFor(J,0,3For(I,0,5sub(DSP,I*16,J*16,{Y+J*30+X+I+{L1}}*64+{L2}EndEndReturn
Code: [Select].X = top left part of map to be displayed's X coordinate .Y = top left part of map to be displayed's Y coordinate.{L1} = pointer to the map appvar holding numeric values representing the tiles.{L2} = pointer to the appvar that contains the environment tiles' sprite data.the subroutine sub(DSP,x,y,ptr_to_512bit_sprite displays a 512bit (16x16 in 4 level gray) at x and y starting at the given pointer (this definately works already)Lbl DMPFor(J,0,3For(I,0,5sub(DSP,I*16,J*16,{Y+J*30+X+I+{L1}}*64+{L2}EndEndReturn
Lbl DMPFor(J,0,3For(I,0,5{L1}->Asub(DSP,I*16,J*16,{Y+J*30+X+I+A}*64+{L2}EndEndReturn