Beispiel #1
0
 void set_draw_tile(int tile, int palette, int combo = -1) // -1 not to set one or the other
 {
     if (tile >= 0)
     {
         draw_tile = (byte)((draw_tile & 0xC0) | (tile & 0x3F));
     }
     if (palette >= 0)
     {
         draw_tile = (byte)((draw_tile & 0x3F) | (palette << 6));
     }
     if (combo >= 0)
     {
         draw_tile = (byte)combo;
     }
     updateStatus();
     if (tilepal != null)
     {
         tilepal.updateTileStatus(draw_tile);
         tilepal.redraw();
     }
 }