3 /** @file town_land.h */ |
3 /** @file town_land.h */ |
4 |
4 |
5 |
5 |
6 /** Writes the data into the Town Tile Drawing Struct |
6 /** Writes the data into the Town Tile Drawing Struct |
7 * @param s1 The first sprite of the building, mostly the ground sprite |
7 * @param s1 The first sprite of the building, mostly the ground sprite |
|
8 * @param p1 The first sprite's palette of the building, mostly the ground sprite |
8 * @param s2 The second sprite of the building. |
9 * @param s2 The second sprite of the building. |
|
10 * @param p2 The second sprite's palette of the building. |
9 * @param sx The x-position of the sprite within the tile |
11 * @param sx The x-position of the sprite within the tile |
10 * @param xy the y-position of the sprite within the tile |
12 * @param sy the y-position of the sprite within the tile |
11 * @param w the width of the sprite |
13 * @param w the width of the sprite |
12 * @param h the height of the sprite |
14 * @param h the height of the sprite |
13 * @param dz the virtual height of the sprite |
15 * @param dz the virtual height of the sprite |
14 * @param p set to 1 if a lift is present |
16 * @param p set to 1 if a lift is present () |
15 * @see DrawTownTileStruct |
17 * @see DrawBuildingsTileStruct */ |
16 */ |
|
17 #define M(s1, p1, s2, p2, sx, sy, w, h, dz, p) { { s1, p1 }, { s2, p2 }, sx, sy, w - 1, h - 1, dz, p} |
18 #define M(s1, p1, s2, p2, sx, sy, w, h, dz, p) { { s1, p1 }, { s2, p2 }, sx, sy, w - 1, h - 1, dz, p} |
18 |
19 |
|
20 /** structure of houses graphics*/ |
19 static const DrawBuildingsTileStruct _town_draw_tile_data[] = { |
21 static const DrawBuildingsTileStruct _town_draw_tile_data[] = { |
20 M( 0xf54, PAL_NONE, 0x58d, PAL_NONE, 0, 0, 14, 14, 8, 0), |
22 M( 0xf54, PAL_NONE, 0x58d, PAL_NONE, 0, 0, 14, 14, 8, 0), |
21 M( 0xf54, PAL_NONE, 0x58e, PAL_NONE, 0, 0, 14, 14, 60, 0), |
23 M( 0xf54, PAL_NONE, 0x58e, PAL_NONE, 0, 0, 14, 14, 60, 0), |
22 M( 0xf54, PAL_NONE, 0x58f, PAL_NONE, 0, 0, 14, 14, 60, 0), |
24 M( 0xf54, PAL_NONE, 0x58f, PAL_NONE, 0, 0, 14, 14, 60, 0), |
23 M( 0x590, PAL_NONE, 0x58f, PAL_NONE, 0, 0, 14, 14, 60, 0), |
25 M( 0x590, PAL_NONE, 0x58f, PAL_NONE, 0, 0, 14, 14, 60, 0), |