Label horizontal fog data

This commit is contained in:
GriffinR 2021-04-06 17:05:38 -04:00
parent 4a1cfbead2
commit 7d2a94282a

View file

@ -1266,10 +1266,9 @@ static void UpdateThunderSound(void)
// WEATHER_FOG_HORIZONTAL and WEATHER_UNDERWATER // WEATHER_FOG_HORIZONTAL and WEATHER_UNDERWATER
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// unused data static const u16 sUnusedData[] = {0, 6, 6, 12, 18, 42, 300, 300};
static const u16 unusedData_839AB1C[] = {0, 6, 6, 12, 18, 42, 300, 300};
static const struct OamData gOamData_839AB2C = static const struct OamData sOamData_FogH =
{ {
.y = 0, .y = 0,
.affineMode = ST_OAM_AFFINE_OFF, .affineMode = ST_OAM_AFFINE_OFF,
@ -1286,61 +1285,61 @@ static const struct OamData gOamData_839AB2C =
.affineParam = 0, .affineParam = 0,
}; };
static const union AnimCmd gSpriteAnim_839AB34[] = static const union AnimCmd sAnim_FogH_0[] =
{ {
ANIMCMD_FRAME(0, 16), ANIMCMD_FRAME(0, 16),
ANIMCMD_END, ANIMCMD_END,
}; };
static const union AnimCmd gSpriteAnim_839AB3C[] = static const union AnimCmd sAnim_FogH_1[] =
{ {
ANIMCMD_FRAME(32, 16), ANIMCMD_FRAME(32, 16),
ANIMCMD_END, ANIMCMD_END,
}; };
static const union AnimCmd gSpriteAnim_839AB44[] = static const union AnimCmd sAnim_FogH_2[] =
{ {
ANIMCMD_FRAME(64, 16), ANIMCMD_FRAME(64, 16),
ANIMCMD_END, ANIMCMD_END,
}; };
static const union AnimCmd gSpriteAnim_839AB4C[] = static const union AnimCmd sAnim_FogH_3[] =
{ {
ANIMCMD_FRAME(96, 16), ANIMCMD_FRAME(96, 16),
ANIMCMD_END, ANIMCMD_END,
}; };
static const union AnimCmd gSpriteAnim_839AB54[] = static const union AnimCmd sAnim_FogH_4[] =
{ {
ANIMCMD_FRAME(128, 16), ANIMCMD_FRAME(128, 16),
ANIMCMD_END, ANIMCMD_END,
}; };
static const union AnimCmd gSpriteAnim_839AB5C[] = static const union AnimCmd sAnim_FogH_5[] =
{ {
ANIMCMD_FRAME(160, 16), ANIMCMD_FRAME(160, 16),
ANIMCMD_END, ANIMCMD_END,
}; };
static const union AnimCmd *const gSpriteAnimTable_839AB64[] = static const union AnimCmd *const sAnims_FogH[] =
{ {
gSpriteAnim_839AB34, sAnim_FogH_0,
gSpriteAnim_839AB3C, sAnim_FogH_1,
gSpriteAnim_839AB44, sAnim_FogH_2,
gSpriteAnim_839AB4C, sAnim_FogH_3,
gSpriteAnim_839AB54, sAnim_FogH_4,
gSpriteAnim_839AB5C, sAnim_FogH_5,
}; };
static const union AffineAnimCmd gSpriteAffineAnim_839AB7C[] = static const union AffineAnimCmd sAffineAnim_FogH[] =
{ {
AFFINEANIMCMD_FRAME(0x200, 0x200, 0, 0), AFFINEANIMCMD_FRAME(0x200, 0x200, 0, 0),
AFFINEANIMCMD_END, AFFINEANIMCMD_END,
}; };
static const union AffineAnimCmd *const gSpriteAffineAnimTable_839AB8C[] = static const union AffineAnimCmd *const sAffineAnims_FogH[] =
{ {
gSpriteAffineAnim_839AB7C, sAffineAnim_FogH,
}; };
static void FogHorizontalSpriteCallback(struct Sprite *); static void FogHorizontalSpriteCallback(struct Sprite *);
@ -1348,10 +1347,10 @@ static const struct SpriteTemplate sFogHorizontalSpriteTemplate =
{ {
.tileTag = GFXTAG_FOG_H, .tileTag = GFXTAG_FOG_H,
.paletteTag = PALTAG_WEATHER, .paletteTag = PALTAG_WEATHER,
.oam = &gOamData_839AB2C, .oam = &sOamData_FogH,
.anims = gSpriteAnimTable_839AB64, .anims = sAnims_FogH,
.images = NULL, .images = NULL,
.affineAnims = gSpriteAffineAnimTable_839AB8C, .affineAnims = sAffineAnims_FogH,
.callback = FogHorizontalSpriteCallback, .callback = FogHorizontalSpriteCallback,
}; };