Fully document tileset animations

This commit is contained in:
Marcus Huderle
2019-02-08 15:07:42 -06:00
parent abebd2b864
commit 40dc6833c5
135 changed files with 758 additions and 978 deletions

View File

@@ -126,7 +126,7 @@ static EWRAM_DATA struct BattleDomeStruct *sBattleDomeStruct = {0};
static EWRAM_DATA u8 *sTilemapBuffer = NULL;
// Const rom data.
static const u8 sMovePointsForDomeTrainers[][DOME_TOURNAMENT_TRAINERS_COUNT] =
static const u8 sMovePointsForDomeTrainers[MOVES_COUNT][DOME_TOURNAMENT_TRAINERS_COUNT] =
{
[MOVE_NONE] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0},
[MOVE_POUND] = {0, 0, 0, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0},

View File

@@ -528,7 +528,7 @@ static void mapdata_load_assets_to_gpu_and_full_redraw(void)
copy_map_tileset1_tileset2_to_vram(gMapHeader.mapLayout);
apply_map_tileset1_tileset2_palette(gMapHeader.mapLayout);
DrawWholeMapView();
cur_mapheader_run_tileset_funcs_after_some_cpuset();
InitTilesetAnimations();
}
const struct MapLayout *GetMapLayout(void)
@@ -808,7 +808,7 @@ void mliX_load_map(u8 mapGroup, u8 mapNum)
for (paletteIndex = 6; paletteIndex < 13; paletteIndex++)
ApplyWeatherGammaShiftToPal(paletteIndex);
sub_80A0A2C();
InitSecondaryTilesetAnimation();
UpdateLocationHistoryForRoamer();
RoamerMove();
DoCurrentWeather();
@@ -1451,7 +1451,7 @@ static void OverworldBasic(void)
UpdateCameraPanning();
BuildOamBuffer();
UpdatePaletteFade();
sub_80A0A38();
UpdateTilesetAnimations();
do_scheduled_bg_tilemap_copies_to_vram();
}
@@ -1843,7 +1843,7 @@ static bool32 map_loading_iteration_3(u8 *state)
(*state)++;
break;
case 10:
cur_mapheader_run_tileset_funcs_after_some_cpuset();
InitTilesetAnimations();
(*state)++;
break;
case 11:
@@ -1918,7 +1918,7 @@ static bool32 load_map_stuff(u8 *state, u32 a2)
(*state)++;
break;
case 10:
cur_mapheader_run_tileset_funcs_after_some_cpuset();
InitTilesetAnimations();
(*state)++;
break;
case 11:
@@ -2015,7 +2015,7 @@ static bool32 map_loading_iteration_2_link(u8 *state)
(*state)++;
break;
case 9:
cur_mapheader_run_tileset_funcs_after_some_cpuset();
InitTilesetAnimations();
(*state)++;
break;
case 11:

File diff suppressed because it is too large Load Diff