|
Post by TheMVRules on Mar 14, 2010 11:03:28 GMT -5
TheMVRules function does nothing for me. Mairtrus "assembly hell" does the trick (including the pallette(n) in the VRAM address). Could you add "ink n" support? Well, back to coding! ' By Tom Maneiro, modified by TheMVRules ' Usage: DrawTiles16 <address of map>, <vram tile offset>, <position x>, <position y>, <width>, <height>, <priority> ' Priority: 0=low, 1=high Declare sub DrawTiles16(map_adr as integer,tile_adr as integer,cur_x as integer,cur_y as integer,width as integer,height as integer,prio as integer) for y = 0 to width for x = 0 to height z=map_adr if prio=1 then DrawTile z+tile_adr+priority(), x+cur_x, y+cur_y if prio=0 then DrawTile z+tile_adr, x+cur_x, y+cur_y next next exit sub end sub But whatever, Mairtrus' code probably is better, I were more thinking about compatibility if DevSter changes assembler again.
|
|