00001
00002
00005 #define TILE_SEQ_LINE(img, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 23, {img, PAL_NONE} },
00006 #define TILE_SEQ_END() { (byte)0x80, 0, 0, 0, 0, 0, {0, 0} }
00007
00008
00009 static const DrawTileSeqStruct _depot_gfx_NE[] = {
00010 TILE_SEQ_LINE(SPR_RAIL_DEPOT_NE | (1 << PALETTE_MODIFIER_COLOUR), 2, 13, 13, 1)
00011 TILE_SEQ_END()
00012 };
00013
00014 static const DrawTileSeqStruct _depot_gfx_SE[] = {
00015 TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_1 | (1 << PALETTE_MODIFIER_COLOUR), 2, 2, 1, 13)
00016 TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_2 | (1 << PALETTE_MODIFIER_COLOUR), 13, 2, 1, 13)
00017 TILE_SEQ_END()
00018 };
00019
00020 static const DrawTileSeqStruct _depot_gfx_SW[] = {
00021 TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_1 | (1 << PALETTE_MODIFIER_COLOUR), 2, 2, 13, 1)
00022 TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_2 | (1 << PALETTE_MODIFIER_COLOUR), 2, 13, 13, 1)
00023 TILE_SEQ_END()
00024 };
00025
00026 static const DrawTileSeqStruct _depot_gfx_NW[] = {
00027 TILE_SEQ_LINE(SPR_RAIL_DEPOT_NW | (1 << PALETTE_MODIFIER_COLOUR), 13, 2, 1, 13)
00028 TILE_SEQ_END()
00029 };
00030
00031 static const DrawTileSprites _depot_gfx_table[] = {
00032 { {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NE },
00033 { {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_SE },
00034 { {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_SW },
00035 { {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NW }
00036 };
00037
00038 static const DrawTileSprites _depot_invisible_gfx_table[] = {
00039 { {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_NE },
00040 { {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_SE },
00041 { {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_SW },
00042 { {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_NW }
00043 };
00044
00045 static const DrawTileSeqStruct _waypoint_gfx_X[] = {
00046 TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_X_1, 0, 0, 16, 5)
00047 TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_X_2, 0, 11, 16, 5)
00048 TILE_SEQ_END()
00049 };
00050
00051 static const DrawTileSeqStruct _waypoint_gfx_Y[] = {
00052 TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_Y_1, 0, 0, 5, 16)
00053 TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_Y_2, 11, 0, 5, 16)
00054 TILE_SEQ_END()
00055 };
00056
00057 static const DrawTileSprites _waypoint_gfx_table[] = {
00058 { {SPR_RAIL_TRACK_X, PAL_NONE}, _waypoint_gfx_X },
00059 { {SPR_RAIL_TRACK_Y, PAL_NONE}, _waypoint_gfx_Y }
00060 };
00061
00062 #undef TILE_SEQ_LINE
00063 #undef TILE_SEQ_END
00064