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