All pastes #945770 Raw Edit

Miscellany

public cpp v1 · immutable
·published 2008-03-17 04:48 UTC
rendered paste body
 for(count = 0; count <= 255; count++){    map1[count] = create_bitmap(32, 32);    clear(map1[count]);    map1[count] = create_sub_bitmap(tile, cx, cy*32, cx+32, (cy*32)+32);    printf("%i = %ix%i, %x\r\n", count, cx, cy*32,map1[count]);    cx += 32;    //cy = 0;          if(cx > 15*32){      cx = 0;      cy++;         }  }unsigned char map_1[12][20] ={ {129,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,130,131}, {145,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,147}, {161,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,163}, {161,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,163}, {161,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,163}, {161,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,163}, {161,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,163}, {161,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,163}, {161,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,163}, {161,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,163}, {161,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,163}, {177,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,178,179}};      for(unsigned char i=0;i<=11;i++){        for(unsigned char ii=0;ii<=19;ii++){          draw_sprite(buffer, map1[map_1[i][ii]], ii*32, i*32);        }      }