inc: cleanup and organize header files
[swan-dev] / inc / config.h
1 /* stack relative position */
2 #define WS_STACK        (WS_TILE_BANK - 2)
3 #define WSC_STACK       (WSC_PALETTES - 2)
4
5 /* sizes et al */
6 #define MAP_SIZE        0x800
7 #define SPR_TABLE_SIZE  0x200
8 #define SCREEN_WIDTH    224
9 #define SCREEN_HEIGHT   144
10 #define SCREEN_TWIDTH   (SCREEN_WIDTH / 8)
11 #define SCREEN_THEIGHT  (SCREEN_HEIGHT / 8)
12 #define MAP_WIDTH       256
13 #define MAP_HEIGHT      256
14 #define MAP_TWIDTH      (MAP_WIDTH / 8)
15 #define MAP_THEIGHT     (MAP_HEIGHT / 8)
16
17 #define BG_CHR(tile,pal,bank,hflip,vflip)       (((vflip) << 15) | ((hflip) << 14) | ((bank) << 13) | ((pal) << 9) | (tile))