2017-10-02 03:58:47 +02:00
|
|
|
#include "global.h"
|
2019-02-08 22:07:42 +01:00
|
|
|
#include "graphics.h"
|
2017-10-02 03:58:47 +02:00
|
|
|
#include "palette.h"
|
2018-10-14 14:43:19 +02:00
|
|
|
#include "util.h"
|
2017-10-03 12:11:13 +02:00
|
|
|
#include "battle_transition.h"
|
2017-10-02 03:58:47 +02:00
|
|
|
#include "task.h"
|
2018-01-14 20:45:44 +01:00
|
|
|
#include "battle_transition.h"
|
2018-09-22 22:02:49 +02:00
|
|
|
#include "fieldmap.h"
|
2017-10-02 03:58:47 +02:00
|
|
|
|
|
|
|
static EWRAM_DATA struct {
|
|
|
|
const u16 *src;
|
|
|
|
u16 *dest;
|
|
|
|
u16 size;
|
|
|
|
} sTilesetDMA3TransferBuffer[20] = {0};
|
|
|
|
|
|
|
|
static u8 sTilesetDMA3TransferBufferSize;
|
2019-02-08 22:07:42 +01:00
|
|
|
static u16 sPrimaryTilesetAnimCounter;
|
|
|
|
static u16 sPrimaryTilesetAnimCounterMax;
|
|
|
|
static u16 sSecondaryTilesetAnimCounter;
|
|
|
|
static u16 sSecondaryTilesetAnimCounterMax;
|
|
|
|
static void (*sPrimaryTilesetAnimCallback)(u16);
|
|
|
|
static void (*sSecondaryTilesetAnimCallback)(u16);
|
|
|
|
|
|
|
|
static void _InitPrimaryTilesetAnimation(void);
|
|
|
|
static void _InitSecondaryTilesetAnimation(void);
|
|
|
|
static void TilesetAnim_General(u16);
|
|
|
|
static void TilesetAnim_Building(u16);
|
|
|
|
static void TilesetAnim_Rustboro(u16);
|
|
|
|
static void TilesetAnim_Dewford(u16);
|
|
|
|
static void TilesetAnim_Slateport(u16);
|
|
|
|
static void TilesetAnim_Mauville(u16);
|
|
|
|
static void TilesetAnim_Lavaridge(u16);
|
|
|
|
static void TilesetAnim_EverGrande(u16);
|
|
|
|
static void TilesetAnim_Pacifidlog(u16);
|
|
|
|
static void TilesetAnim_Sootopolis(u16);
|
|
|
|
static void TilesetAnim_BattleFrontierOutsideWest(u16);
|
|
|
|
static void TilesetAnim_BattleFrontierOutsideEast(u16);
|
|
|
|
static void TilesetAnim_Underwater(u16);
|
|
|
|
static void TilesetAnim_SootopolisGym(u16);
|
|
|
|
static void TilesetAnim_Cave(u16);
|
|
|
|
static void TilesetAnim_EliteFour(u16);
|
|
|
|
static void TilesetAnim_MauvilleGym(u16);
|
|
|
|
static void TilesetAnim_BikeShop(u16);
|
|
|
|
static void TilesetAnim_BattlePyramid(u16);
|
|
|
|
static void TilesetAnim_BattleDome(u16);
|
|
|
|
static void QueueAnimTiles_General_Flower(u16);
|
|
|
|
static void QueueAnimTiles_General_Water(u16);
|
|
|
|
static void QueueAnimTiles_General_SandWaterEdge(u16);
|
|
|
|
static void QueueAnimTiles_General_Waterfall(u16);
|
|
|
|
static void QueueAnimTiles_General_LandWaterEdge(u16);
|
|
|
|
static void QueueAnimTiles_Building_TVTurnedOn(u16);
|
|
|
|
static void QueueAnimTiles_Rustboro_WindyWater(u16, u8);
|
|
|
|
static void QueueAnimTiles_Rustboro_Fountain(u16);
|
|
|
|
static void QueueAnimTiles_Dewford_Flag(u16);
|
|
|
|
static void QueueAnimTiles_Slateport_Balloons(u16);
|
|
|
|
static void QueueAnimTiles_Mauville_Flowers(u16, u8);
|
|
|
|
static void QueueAnimTiles_BikeShop_BlinkingLights(u16);
|
|
|
|
static void QueueAnimTiles_BattlePyramid_Torch(u16);
|
|
|
|
static void QueueAnimTiles_BattlePyramid_StatueShadow(u16);
|
|
|
|
static void BlendAnimPalette_BattleDome_FloorLights(u16);
|
|
|
|
static void BlendAnimPalette_BattleDome_FloorLightsNoBlend(u16);
|
|
|
|
static void QueueAnimTiles_Lavaridge_Steam(u8);
|
|
|
|
static void QueueAnimTiles_Lavaridge_Lava(u16);
|
|
|
|
static void QueueAnimTiles_EverGrande_Flowers(u16, u8);
|
|
|
|
static void QueueAnimTiles_Pacifidlog_LogBridges(u8);
|
|
|
|
static void QueueAnimTiles_Pacifidlog_WaterCurrents(u8);
|
|
|
|
static void QueueAnimTiles_Sootopolis_StormyWater(u16);
|
|
|
|
static void QueueAnimTiles_Underwater_Seaweed(u8);
|
|
|
|
static void QueueAnimTiles_Cave_Lava(u16);
|
|
|
|
static void QueueAnimTiles_BattleFrontierOutsideWest_Flag(u16);
|
|
|
|
static void QueueAnimTiles_BattleFrontierOutsideEast_Flag(u16);
|
|
|
|
static void QueueAnimTiles_MauvilleGym_ElectricGates(u16);
|
|
|
|
static void QueueAnimTiles_SootopolisGym_Waterfalls(u16);
|
|
|
|
static void QueueAnimTiles_EliteFour_GroundLights(u16);
|
|
|
|
static void QueueAnimTiles_EliteFour_WallLights(u16);
|
|
|
|
|
|
|
|
const u16 gTilesetAnims_General_Flower_Frame1[] = INCBIN_U16("data/tilesets/primary/general/anim/flower/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Flower_Frame0[] = INCBIN_U16("data/tilesets/primary/general/anim/flower/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Flower_Frame2[] = INCBIN_U16("data/tilesets/primary/general/anim/flower/2.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_0[16] = {};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_General_Flower[] = {
|
|
|
|
gTilesetAnims_General_Flower_Frame0,
|
|
|
|
gTilesetAnims_General_Flower_Frame1,
|
|
|
|
gTilesetAnims_General_Flower_Frame0,
|
|
|
|
gTilesetAnims_General_Flower_Frame2
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_General_Water_Frame0[] = INCBIN_U16("data/tilesets/primary/general/anim/water/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Water_Frame1[] = INCBIN_U16("data/tilesets/primary/general/anim/water/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Water_Frame2[] = INCBIN_U16("data/tilesets/primary/general/anim/water/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Water_Frame3[] = INCBIN_U16("data/tilesets/primary/general/anim/water/3.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Water_Frame4[] = INCBIN_U16("data/tilesets/primary/general/anim/water/4.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Water_Frame5[] = INCBIN_U16("data/tilesets/primary/general/anim/water/5.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Water_Frame6[] = INCBIN_U16("data/tilesets/primary/general/anim/water/6.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Water_Frame7[] = INCBIN_U16("data/tilesets/primary/general/anim/water/7.4bpp");
|
|
|
|
|
|
|
|
const u16 *const gTilesetAnims_General_Water[] = {
|
|
|
|
gTilesetAnims_General_Water_Frame0,
|
|
|
|
gTilesetAnims_General_Water_Frame1,
|
|
|
|
gTilesetAnims_General_Water_Frame2,
|
|
|
|
gTilesetAnims_General_Water_Frame3,
|
|
|
|
gTilesetAnims_General_Water_Frame4,
|
|
|
|
gTilesetAnims_General_Water_Frame5,
|
|
|
|
gTilesetAnims_General_Water_Frame6,
|
|
|
|
gTilesetAnims_General_Water_Frame7
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_General_SandWaterEdge_Frame0[] = INCBIN_U16("data/tilesets/primary/general/anim/sand_water_edge/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_SandWaterEdge_Frame1[] = INCBIN_U16("data/tilesets/primary/general/anim/sand_water_edge/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_SandWaterEdge_Frame2[] = INCBIN_U16("data/tilesets/primary/general/anim/sand_water_edge/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_SandWaterEdge_Frame3[] = INCBIN_U16("data/tilesets/primary/general/anim/sand_water_edge/3.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_SandWaterEdge_Frame4[] = INCBIN_U16("data/tilesets/primary/general/anim/sand_water_edge/4.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_SandWaterEdge_Frame5[] = INCBIN_U16("data/tilesets/primary/general/anim/sand_water_edge/5.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_SandWaterEdge_Frame6[] = INCBIN_U16("data/tilesets/primary/general/anim/sand_water_edge/6.4bpp");
|
|
|
|
|
|
|
|
const u16 *const gTilesetAnims_General_SandWaterEdge[] = {
|
|
|
|
gTilesetAnims_General_SandWaterEdge_Frame0,
|
|
|
|
gTilesetAnims_General_SandWaterEdge_Frame1,
|
|
|
|
gTilesetAnims_General_SandWaterEdge_Frame2,
|
|
|
|
gTilesetAnims_General_SandWaterEdge_Frame3,
|
|
|
|
gTilesetAnims_General_SandWaterEdge_Frame4,
|
|
|
|
gTilesetAnims_General_SandWaterEdge_Frame5,
|
|
|
|
gTilesetAnims_General_SandWaterEdge_Frame6,
|
|
|
|
gTilesetAnims_General_SandWaterEdge_Frame0
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_General_Waterfall_Frame0[] = INCBIN_U16("data/tilesets/primary/general/anim/waterfall/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Waterfall_Frame1[] = INCBIN_U16("data/tilesets/primary/general/anim/waterfall/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Waterfall_Frame2[] = INCBIN_U16("data/tilesets/primary/general/anim/waterfall/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_Waterfall_Frame3[] = INCBIN_U16("data/tilesets/primary/general/anim/waterfall/3.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_General_Waterfall[] = {
|
|
|
|
gTilesetAnims_General_Waterfall_Frame0,
|
|
|
|
gTilesetAnims_General_Waterfall_Frame1,
|
|
|
|
gTilesetAnims_General_Waterfall_Frame2,
|
|
|
|
gTilesetAnims_General_Waterfall_Frame3
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_General_LandWaterEdge_Frame0[] = INCBIN_U16("data/tilesets/primary/general/anim/land_water_edge/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_LandWaterEdge_Frame1[] = INCBIN_U16("data/tilesets/primary/general/anim/land_water_edge/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_LandWaterEdge_Frame2[] = INCBIN_U16("data/tilesets/primary/general/anim/land_water_edge/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_General_LandWaterEdge_Frame3[] = INCBIN_U16("data/tilesets/primary/general/anim/land_water_edge/3.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_General_LandWaterEdge[] = {
|
|
|
|
gTilesetAnims_General_LandWaterEdge_Frame0,
|
|
|
|
gTilesetAnims_General_LandWaterEdge_Frame1,
|
|
|
|
gTilesetAnims_General_LandWaterEdge_Frame2,
|
|
|
|
gTilesetAnims_General_LandWaterEdge_Frame3
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Lavaridge_Steam_Frame0[] = INCBIN_U16("data/tilesets/secondary/lavaridge/anim/steam/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Lavaridge_Steam_Frame1[] = INCBIN_U16("data/tilesets/secondary/lavaridge/anim/steam/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Lavaridge_Steam_Frame2[] = INCBIN_U16("data/tilesets/secondary/lavaridge/anim/steam/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_Lavaridge_Steam_Frame3[] = INCBIN_U16("data/tilesets/secondary/lavaridge/anim/steam/3.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Lavaridge_Steam[] = {
|
|
|
|
gTilesetAnims_Lavaridge_Steam_Frame0,
|
|
|
|
gTilesetAnims_Lavaridge_Steam_Frame1,
|
|
|
|
gTilesetAnims_Lavaridge_Steam_Frame2,
|
|
|
|
gTilesetAnims_Lavaridge_Steam_Frame3
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Pacifidlog_LogBridges_Frame0[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/log_bridges/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Pacifidlog_LogBridges_Frame1[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/log_bridges/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Pacifidlog_LogBridges_Frame2[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/log_bridges/2.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Pacifidlog_LogBridges[] = {
|
|
|
|
gTilesetAnims_Pacifidlog_LogBridges_Frame0,
|
|
|
|
gTilesetAnims_Pacifidlog_LogBridges_Frame1,
|
|
|
|
gTilesetAnims_Pacifidlog_LogBridges_Frame2,
|
|
|
|
gTilesetAnims_Pacifidlog_LogBridges_Frame1
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Underwater_Seaweed_Frame0[] = INCBIN_U16("data/tilesets/secondary/underwater/anim/seaweed/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Underwater_Seaweed_Frame1[] = INCBIN_U16("data/tilesets/secondary/underwater/anim/seaweed/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Underwater_Seaweed_Frame2[] = INCBIN_U16("data/tilesets/secondary/underwater/anim/seaweed/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_Underwater_Seaweed_Frame3[] = INCBIN_U16("data/tilesets/secondary/underwater/anim/seaweed/3.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Underwater_Seaweed[] = {
|
|
|
|
gTilesetAnims_Underwater_Seaweed_Frame0,
|
|
|
|
gTilesetAnims_Underwater_Seaweed_Frame1,
|
|
|
|
gTilesetAnims_Underwater_Seaweed_Frame2,
|
|
|
|
gTilesetAnims_Underwater_Seaweed_Frame3
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Pacifidlog_WaterCurrents_Frame0[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/water_currents/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Pacifidlog_WaterCurrents_Frame1[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/water_currents/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Pacifidlog_WaterCurrents_Frame2[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/water_currents/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_Pacifidlog_WaterCurrents_Frame3[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/water_currents/3.4bpp");
|
|
|
|
const u16 gTilesetAnims_Pacifidlog_WaterCurrents_Frame4[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/water_currents/4.4bpp");
|
|
|
|
const u16 gTilesetAnims_Pacifidlog_WaterCurrents_Frame5[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/water_currents/5.4bpp");
|
|
|
|
const u16 gTilesetAnims_Pacifidlog_WaterCurrents_Frame6[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/water_currents/6.4bpp");
|
|
|
|
const u16 gTilesetAnims_Pacifidlog_WaterCurrents_Frame7[] = INCBIN_U16("data/tilesets/secondary/pacifidlog/anim/water_currents/7.4bpp");
|
|
|
|
|
|
|
|
const u16 *const gTilesetAnims_Pacifidlog_WaterCurrents[] = {
|
|
|
|
gTilesetAnims_Pacifidlog_WaterCurrents_Frame0,
|
|
|
|
gTilesetAnims_Pacifidlog_WaterCurrents_Frame1,
|
|
|
|
gTilesetAnims_Pacifidlog_WaterCurrents_Frame2,
|
|
|
|
gTilesetAnims_Pacifidlog_WaterCurrents_Frame3,
|
|
|
|
gTilesetAnims_Pacifidlog_WaterCurrents_Frame4,
|
|
|
|
gTilesetAnims_Pacifidlog_WaterCurrents_Frame5,
|
|
|
|
gTilesetAnims_Pacifidlog_WaterCurrents_Frame6,
|
|
|
|
gTilesetAnims_Pacifidlog_WaterCurrents_Frame7
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Mauville_Flower1_Frame0[] = INCBIN_U16("data/tilesets/secondary/mauville/anim/flower_1/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Mauville_Flower1_Frame1[] = INCBIN_U16("data/tilesets/secondary/mauville/anim/flower_1/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Mauville_Flower1_Frame2[] = INCBIN_U16("data/tilesets/secondary/mauville/anim/flower_1/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_Mauville_Flower1_Frame3[] = INCBIN_U16("data/tilesets/secondary/mauville/anim/flower_1/3.4bpp");
|
|
|
|
const u16 gTilesetAnims_Mauville_Flower1_Frame4[] = INCBIN_U16("data/tilesets/secondary/mauville/anim/flower_1/4.4bpp");
|
|
|
|
const u16 gTilesetAnims_Mauville_Flower2_Frame0[] = INCBIN_U16("data/tilesets/secondary/mauville/anim/flower_2/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Mauville_Flower2_Frame1[] = INCBIN_U16("data/tilesets/secondary/mauville/anim/flower_2/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Mauville_Flower2_Frame2[] = INCBIN_U16("data/tilesets/secondary/mauville/anim/flower_2/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_Mauville_Flower2_Frame3[] = INCBIN_U16("data/tilesets/secondary/mauville/anim/flower_2/3.4bpp");
|
|
|
|
const u16 gTilesetAnims_Mauville_Flower2_Frame4[] = INCBIN_U16("data/tilesets/secondary/mauville/anim/flower_2/4.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_1[16] = {};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
u16 *const gTilesetAnims_Mauville_Flower1_VDests[] = {
|
2018-09-23 21:58:36 +02:00
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 96)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 100)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 104)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 108)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 112)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 116)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 120)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 124))
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
u16 *const gTilesetAnims_Mauville_Flower2_VDests[] = {
|
2018-09-23 21:58:36 +02:00
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 128)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 132)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 136)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 140)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 144)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 148)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 152)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 156))
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Mauville_Flower1[] = {
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame0,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame0,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame1,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame2,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame2,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame1
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Mauville_Flower2[] = {
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame0,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame0,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame1,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame2,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame3,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame2,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame1
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Mauville_Flower1_B[] = {
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame0,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame0,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame4,
|
|
|
|
gTilesetAnims_Mauville_Flower1_Frame4
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Mauville_Flower2_B[] = {
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame0,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame0,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame4,
|
|
|
|
gTilesetAnims_Mauville_Flower2_Frame4
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Rustboro_WindyWater_Frame0[] = INCBIN_U16("data/tilesets/secondary/rustboro/anim/windy_water/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Rustboro_WindyWater_Frame1[] = INCBIN_U16("data/tilesets/secondary/rustboro/anim/windy_water/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Rustboro_WindyWater_Frame2[] = INCBIN_U16("data/tilesets/secondary/rustboro/anim/windy_water/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_Rustboro_WindyWater_Frame3[] = INCBIN_U16("data/tilesets/secondary/rustboro/anim/windy_water/3.4bpp");
|
|
|
|
const u16 gTilesetAnims_Rustboro_WindyWater_Frame4[] = INCBIN_U16("data/tilesets/secondary/rustboro/anim/windy_water/4.4bpp");
|
|
|
|
const u16 gTilesetAnims_Rustboro_WindyWater_Frame5[] = INCBIN_U16("data/tilesets/secondary/rustboro/anim/windy_water/5.4bpp");
|
|
|
|
const u16 gTilesetAnims_Rustboro_WindyWater_Frame6[] = INCBIN_U16("data/tilesets/secondary/rustboro/anim/windy_water/6.4bpp");
|
|
|
|
const u16 gTilesetAnims_Rustboro_WindyWater_Frame7[] = INCBIN_U16("data/tilesets/secondary/rustboro/anim/windy_water/7.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
u16 *const gTilesetAnims_Rustboro_WindyWater_VDests[] = {
|
2018-09-23 21:58:36 +02:00
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 128)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 132)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 136)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 140)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 144)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 148)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 152)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 156))
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Rustboro_WindyWater[] = {
|
|
|
|
gTilesetAnims_Rustboro_WindyWater_Frame0,
|
|
|
|
gTilesetAnims_Rustboro_WindyWater_Frame1,
|
|
|
|
gTilesetAnims_Rustboro_WindyWater_Frame2,
|
|
|
|
gTilesetAnims_Rustboro_WindyWater_Frame3,
|
|
|
|
gTilesetAnims_Rustboro_WindyWater_Frame4,
|
|
|
|
gTilesetAnims_Rustboro_WindyWater_Frame5,
|
|
|
|
gTilesetAnims_Rustboro_WindyWater_Frame6,
|
|
|
|
gTilesetAnims_Rustboro_WindyWater_Frame7
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Rustboro_Fountain_Frame0[] = INCBIN_U16("data/tilesets/secondary/rustboro/anim/fountain/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Rustboro_Fountain_Frame1[] = INCBIN_U16("data/tilesets/secondary/rustboro/anim/fountain/1.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_2[16] = {};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Rustboro_Fountain[] = {
|
|
|
|
gTilesetAnims_Rustboro_Fountain_Frame0,
|
|
|
|
gTilesetAnims_Rustboro_Fountain_Frame1
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Lavaridge_Cave_Lava_Frame0[] = INCBIN_U16("data/tilesets/secondary/cave/anim/lava/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Lavaridge_Cave_Lava_Frame1[] = INCBIN_U16("data/tilesets/secondary/cave/anim/lava/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Lavaridge_Cave_Lava_Frame2[] = INCBIN_U16("data/tilesets/secondary/cave/anim/lava/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_Lavaridge_Cave_Lava_Frame3[] = INCBIN_U16("data/tilesets/secondary/cave/anim/lava/3.4bpp");
|
|
|
|
const u16 gTilesetAnims_Lavaridge_Cave_Lava_Frame4[] = INCBIN_U16("data/tilesets/secondary/cave/anim/lava/4.4bpp");
|
|
|
|
const u16 gTilesetAnims_Lavaridge_Cave_Lava_Frame5[] = INCBIN_U16("data/tilesets/secondary/cave/anim/lava/5.4bpp");
|
|
|
|
const u16 gTilesetAnims_Lavaridge_Cave_Lava_Frame6[] = INCBIN_U16("data/tilesets/secondary/cave/anim/lava/6.4bpp");
|
|
|
|
const u16 gTilesetAnims_Lavaridge_Cave_Lava_Frame7[] = INCBIN_U16("data/tilesets/secondary/cave/anim/lava/7.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_3[16] = {};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Lavaridge_Cave_Lava[] = {
|
|
|
|
gTilesetAnims_Lavaridge_Cave_Lava_Frame0,
|
|
|
|
gTilesetAnims_Lavaridge_Cave_Lava_Frame1,
|
|
|
|
gTilesetAnims_Lavaridge_Cave_Lava_Frame2,
|
|
|
|
gTilesetAnims_Lavaridge_Cave_Lava_Frame3
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_EverGrande_Flowers_Frame0[] = INCBIN_U16("data/tilesets/secondary/ever_grande/anim/flowers/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_EverGrande_Flowers_Frame1[] = INCBIN_U16("data/tilesets/secondary/ever_grande/anim/flowers/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_EverGrande_Flowers_Frame2[] = INCBIN_U16("data/tilesets/secondary/ever_grande/anim/flowers/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_EverGrande_Flowers_Frame3[] = INCBIN_U16("data/tilesets/secondary/ever_grande/anim/flowers/3.4bpp");
|
|
|
|
const u16 gTilesetAnims_EverGrande_Flowers_Frame4[] = INCBIN_U16("data/tilesets/secondary/ever_grande/anim/flowers/4.4bpp");
|
|
|
|
const u16 gTilesetAnims_EverGrande_Flowers_Frame5[] = INCBIN_U16("data/tilesets/secondary/ever_grande/anim/flowers/5.4bpp");
|
|
|
|
const u16 gTilesetAnims_EverGrande_Flowers_Frame6[] = INCBIN_U16("data/tilesets/secondary/ever_grande/anim/flowers/6.4bpp");
|
|
|
|
const u16 gTilesetAnims_EverGrande_Flowers_Frame7[] = INCBIN_U16("data/tilesets/secondary/ever_grande/anim/flowers/7.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_4[16] = {};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
u16 *const gTilesetAnims_EverGrande_VDests[] = {
|
2018-09-23 21:58:36 +02:00
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 224)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 228)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 232)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 236)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 240)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 244)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 248)),
|
|
|
|
(u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 252))
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_EverGrande_Flowers[] = {
|
|
|
|
gTilesetAnims_EverGrande_Flowers_Frame0,
|
|
|
|
gTilesetAnims_EverGrande_Flowers_Frame1,
|
|
|
|
gTilesetAnims_EverGrande_Flowers_Frame2,
|
|
|
|
gTilesetAnims_EverGrande_Flowers_Frame3,
|
|
|
|
gTilesetAnims_EverGrande_Flowers_Frame4,
|
|
|
|
gTilesetAnims_EverGrande_Flowers_Frame5,
|
|
|
|
gTilesetAnims_EverGrande_Flowers_Frame6,
|
|
|
|
gTilesetAnims_EverGrande_Flowers_Frame7
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Dewford_Flag_Frame0[] = INCBIN_U16("data/tilesets/secondary/dewford/anim/flag/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Dewford_Flag_Frame1[] = INCBIN_U16("data/tilesets/secondary/dewford/anim/flag/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Dewford_Flag_Frame2[] = INCBIN_U16("data/tilesets/secondary/dewford/anim/flag/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_Dewford_Flag_Frame3[] = INCBIN_U16("data/tilesets/secondary/dewford/anim/flag/3.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Dewford_Flag[] = {
|
|
|
|
gTilesetAnims_Dewford_Flag_Frame0,
|
|
|
|
gTilesetAnims_Dewford_Flag_Frame1,
|
|
|
|
gTilesetAnims_Dewford_Flag_Frame2,
|
|
|
|
gTilesetAnims_Dewford_Flag_Frame3
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_BattleFrontierOutsideWest_Flag_Frame0[] = INCBIN_U16("data/tilesets/secondary/battle_frontier_outside_west/anim/flag/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_BattleFrontierOutsideWest_Flag_Frame1[] = INCBIN_U16("data/tilesets/secondary/battle_frontier_outside_west/anim/flag/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_BattleFrontierOutsideWest_Flag_Frame2[] = INCBIN_U16("data/tilesets/secondary/battle_frontier_outside_west/anim/flag/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_BattleFrontierOutsideWest_Flag_Frame3[] = INCBIN_U16("data/tilesets/secondary/battle_frontier_outside_west/anim/flag/3.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_BattleFrontierOutsideWest_Flag[] = {
|
|
|
|
gTilesetAnims_BattleFrontierOutsideWest_Flag_Frame0,
|
|
|
|
gTilesetAnims_BattleFrontierOutsideWest_Flag_Frame1,
|
|
|
|
gTilesetAnims_BattleFrontierOutsideWest_Flag_Frame2,
|
|
|
|
gTilesetAnims_BattleFrontierOutsideWest_Flag_Frame3
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_BattleFrontierOutsideEast_Flag_Frame0[] = INCBIN_U16("data/tilesets/secondary/battle_frontier_outside_east/anim/flag/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_BattleFrontierOutsideEast_Flag_Frame1[] = INCBIN_U16("data/tilesets/secondary/battle_frontier_outside_east/anim/flag/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_BattleFrontierOutsideEast_Flag_Frame2[] = INCBIN_U16("data/tilesets/secondary/battle_frontier_outside_east/anim/flag/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_BattleFrontierOutsideEast_Flag_Frame3[] = INCBIN_U16("data/tilesets/secondary/battle_frontier_outside_east/anim/flag/3.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_BattleFrontierOutsideEast_Flag[] = {
|
|
|
|
gTilesetAnims_BattleFrontierOutsideEast_Flag_Frame0,
|
|
|
|
gTilesetAnims_BattleFrontierOutsideEast_Flag_Frame1,
|
|
|
|
gTilesetAnims_BattleFrontierOutsideEast_Flag_Frame2,
|
|
|
|
gTilesetAnims_BattleFrontierOutsideEast_Flag_Frame3
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Slateport_Balloons_Frame0[] = INCBIN_U16("data/tilesets/secondary/slateport/anim/balloons/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Slateport_Balloons_Frame1[] = INCBIN_U16("data/tilesets/secondary/slateport/anim/balloons/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Slateport_Balloons_Frame2[] = INCBIN_U16("data/tilesets/secondary/slateport/anim/balloons/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_Slateport_Balloons_Frame3[] = INCBIN_U16("data/tilesets/secondary/slateport/anim/balloons/3.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Slateport_Balloons[] = {
|
|
|
|
gTilesetAnims_Slateport_Balloons_Frame0,
|
|
|
|
gTilesetAnims_Slateport_Balloons_Frame1,
|
|
|
|
gTilesetAnims_Slateport_Balloons_Frame2,
|
|
|
|
gTilesetAnims_Slateport_Balloons_Frame3
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_Building_TvTurnedOn_Frame0[] = INCBIN_U16("data/tilesets/primary/building/anim/tv_turned_on/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Building_TvTurnedOn_Frame1[] = INCBIN_U16("data/tilesets/primary/building/anim/tv_turned_on/1.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Building_TvTurnedOn[] = {
|
|
|
|
gTilesetAnims_Building_TvTurnedOn_Frame0,
|
|
|
|
gTilesetAnims_Building_TvTurnedOn_Frame1
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_SootopolisGym_SideWaterfall_Frame0[] = INCBIN_U16("data/tilesets/secondary/sootopolis_gym/anim/side_waterfall/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_SootopolisGym_SideWaterfall_Frame1[] = INCBIN_U16("data/tilesets/secondary/sootopolis_gym/anim/side_waterfall/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_SootopolisGym_SideWaterfall_Frame2[] = INCBIN_U16("data/tilesets/secondary/sootopolis_gym/anim/side_waterfall/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_SootopolisGym_FrontWaterfall_Frame0[] = INCBIN_U16("data/tilesets/secondary/sootopolis_gym/anim/front_waterfall/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_SootopolisGym_FrontWaterfall_Frame1[] = INCBIN_U16("data/tilesets/secondary/sootopolis_gym/anim/front_waterfall/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_SootopolisGym_FrontWaterfall_Frame2[] = INCBIN_U16("data/tilesets/secondary/sootopolis_gym/anim/front_waterfall/2.4bpp");
|
|
|
|
|
|
|
|
const u16 *const gTilesetAnims_SootopolisGym_SideWaterfall[] = {
|
|
|
|
gTilesetAnims_SootopolisGym_SideWaterfall_Frame0,
|
|
|
|
gTilesetAnims_SootopolisGym_SideWaterfall_Frame1,
|
|
|
|
gTilesetAnims_SootopolisGym_SideWaterfall_Frame2
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_SootopolisGym_FrontWaterfall[] = {
|
|
|
|
gTilesetAnims_SootopolisGym_FrontWaterfall_Frame0,
|
|
|
|
gTilesetAnims_SootopolisGym_FrontWaterfall_Frame1,
|
|
|
|
gTilesetAnims_SootopolisGym_FrontWaterfall_Frame2
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_EliteFour_FloorLight_Frame0[] = INCBIN_U16("data/tilesets/secondary/elite_four/anim/floor_light/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_EliteFour_FloorLight_Frame1[] = INCBIN_U16("data/tilesets/secondary/elite_four/anim/floor_light/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_EliteFour_WallLights_Frame0[] = INCBIN_U16("data/tilesets/secondary/elite_four/anim/wall_lights/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_EliteFour_WallLights_Frame1[] = INCBIN_U16("data/tilesets/secondary/elite_four/anim/wall_lights/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_EliteFour_WallLights_Frame2[] = INCBIN_U16("data/tilesets/secondary/elite_four/anim/wall_lights/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_EliteFour_WallLights_Frame3[] = INCBIN_U16("data/tilesets/secondary/elite_four/anim/wall_lights/3.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_5[16] = {};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_EliteFour_WallLights[] = {
|
|
|
|
gTilesetAnims_EliteFour_WallLights_Frame0,
|
|
|
|
gTilesetAnims_EliteFour_WallLights_Frame1,
|
|
|
|
gTilesetAnims_EliteFour_WallLights_Frame2,
|
|
|
|
gTilesetAnims_EliteFour_WallLights_Frame3
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_EliteFour_FloorLight[] = {
|
|
|
|
gTilesetAnims_EliteFour_FloorLight_Frame0,
|
|
|
|
gTilesetAnims_EliteFour_FloorLight_Frame1
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_MauvilleGym_ElectricGates_Frame0[] = INCBIN_U16("data/tilesets/secondary/mauville_gym/anim/electric_gates/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_MauvilleGym_ElectricGates_Frame1[] = INCBIN_U16("data/tilesets/secondary/mauville_gym/anim/electric_gates/1.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_6[16] = {};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_MauvilleGym_ElectricGates[] = {
|
|
|
|
gTilesetAnims_MauvilleGym_ElectricGates_Frame0,
|
|
|
|
gTilesetAnims_MauvilleGym_ElectricGates_Frame1
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_BikeShop_BlinkingLights_Frame0[] = INCBIN_U16("data/tilesets/secondary/bike_shop/anim/blinking_lights/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_BikeShop_BlinkingLights_Frame1[] = INCBIN_U16("data/tilesets/secondary/bike_shop/anim/blinking_lights/1.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_7[16] = {};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_BikeShop_BlinkingLights[] = {
|
|
|
|
gTilesetAnims_BikeShop_BlinkingLights_Frame0,
|
|
|
|
gTilesetAnims_BikeShop_BlinkingLights_Frame1
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2022-11-27 05:38:39 +01:00
|
|
|
const u16 gTilesetAnims_Sootopolis_StormyWater_Frame0[] = INCBIN_U16("data/tilesets/secondary/sootopolis/anim/stormy_water/0_kyogre.4bpp", "data/tilesets/secondary/sootopolis/anim/stormy_water/0_groudon.4bpp");
|
|
|
|
const u16 gTilesetAnims_Sootopolis_StormyWater_Frame1[] = INCBIN_U16("data/tilesets/secondary/sootopolis/anim/stormy_water/1_kyogre.4bpp", "data/tilesets/secondary/sootopolis/anim/stormy_water/1_groudon.4bpp");
|
|
|
|
const u16 gTilesetAnims_Sootopolis_StormyWater_Frame2[] = INCBIN_U16("data/tilesets/secondary/sootopolis/anim/stormy_water/2_kyogre.4bpp", "data/tilesets/secondary/sootopolis/anim/stormy_water/2_groudon.4bpp");
|
|
|
|
const u16 gTilesetAnims_Sootopolis_StormyWater_Frame3[] = INCBIN_U16("data/tilesets/secondary/sootopolis/anim/stormy_water/3_kyogre.4bpp", "data/tilesets/secondary/sootopolis/anim/stormy_water/3_groudon.4bpp");
|
|
|
|
const u16 gTilesetAnims_Sootopolis_StormyWater_Frame4[] = INCBIN_U16("data/tilesets/secondary/sootopolis/anim/stormy_water/4_kyogre.4bpp", "data/tilesets/secondary/sootopolis/anim/stormy_water/4_groudon.4bpp");
|
|
|
|
const u16 gTilesetAnims_Sootopolis_StormyWater_Frame5[] = INCBIN_U16("data/tilesets/secondary/sootopolis/anim/stormy_water/5_kyogre.4bpp", "data/tilesets/secondary/sootopolis/anim/stormy_water/5_groudon.4bpp");
|
|
|
|
const u16 gTilesetAnims_Sootopolis_StormyWater_Frame6[] = INCBIN_U16("data/tilesets/secondary/sootopolis/anim/stormy_water/6_kyogre.4bpp", "data/tilesets/secondary/sootopolis/anim/stormy_water/6_groudon.4bpp");
|
|
|
|
const u16 gTilesetAnims_Sootopolis_StormyWater_Frame7[] = INCBIN_U16("data/tilesets/secondary/sootopolis/anim/stormy_water/7_kyogre.4bpp", "data/tilesets/secondary/sootopolis/anim/stormy_water/7_groudon.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_8[16] = {};
|
|
|
|
|
2018-06-11 22:57:22 +02:00
|
|
|
const u16 gTilesetAnims_Unused1_Frame0[] = INCBIN_U16("data/tilesets/secondary/unused_1/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_Unused1_Frame1[] = INCBIN_U16("data/tilesets/secondary/unused_1/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_Unused1_Frame2[] = INCBIN_U16("data/tilesets/secondary/unused_1/2.4bpp");
|
|
|
|
const u16 gTilesetAnims_Unused1_Frame3[] = INCBIN_U16("data/tilesets/secondary/unused_1/3.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_Sootopolis_StormyWater[] = {
|
|
|
|
gTilesetAnims_Sootopolis_StormyWater_Frame0,
|
|
|
|
gTilesetAnims_Sootopolis_StormyWater_Frame1,
|
|
|
|
gTilesetAnims_Sootopolis_StormyWater_Frame2,
|
|
|
|
gTilesetAnims_Sootopolis_StormyWater_Frame3,
|
|
|
|
gTilesetAnims_Sootopolis_StormyWater_Frame4,
|
|
|
|
gTilesetAnims_Sootopolis_StormyWater_Frame5,
|
|
|
|
gTilesetAnims_Sootopolis_StormyWater_Frame6,
|
|
|
|
gTilesetAnims_Sootopolis_StormyWater_Frame7
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_BattlePyramid_Torch_Frame0[] = INCBIN_U16("data/tilesets/secondary/battle_pyramid/anim/torch/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_BattlePyramid_Torch_Frame1[] = INCBIN_U16("data/tilesets/secondary/battle_pyramid/anim/torch/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_BattlePyramid_Torch_Frame2[] = INCBIN_U16("data/tilesets/secondary/battle_pyramid/anim/torch/2.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_9[16] = {};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 gTilesetAnims_BattlePyramid_StatueShadow_Frame0[] = INCBIN_U16("data/tilesets/secondary/battle_pyramid/anim/statue_shadow/0.4bpp");
|
|
|
|
const u16 gTilesetAnims_BattlePyramid_StatueShadow_Frame1[] = INCBIN_U16("data/tilesets/secondary/battle_pyramid/anim/statue_shadow/1.4bpp");
|
|
|
|
const u16 gTilesetAnims_BattlePyramid_StatueShadow_Frame2[] = INCBIN_U16("data/tilesets/secondary/battle_pyramid/anim/statue_shadow/2.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_10[7808] = {};
|
|
|
|
|
2018-06-11 22:57:22 +02:00
|
|
|
const u16 gTilesetAnims_Unused2_Frame0[] = INCBIN_U16("data/tilesets/secondary/unused_2/0.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
const u16 tileset_anims_space_11[224] = {};
|
|
|
|
|
2018-06-11 22:57:22 +02:00
|
|
|
const u16 gTilesetAnims_Unused2_Frame1[] = INCBIN_U16("data/tilesets/secondary/unused_2/1.4bpp");
|
2017-10-03 03:08:54 +02:00
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_BattlePyramid_Torch[] = {
|
|
|
|
gTilesetAnims_BattlePyramid_Torch_Frame0,
|
|
|
|
gTilesetAnims_BattlePyramid_Torch_Frame1,
|
|
|
|
gTilesetAnims_BattlePyramid_Torch_Frame2
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
const u16 *const gTilesetAnims_BattlePyramid_StatueShadow[] = {
|
|
|
|
gTilesetAnims_BattlePyramid_StatueShadow_Frame0,
|
|
|
|
gTilesetAnims_BattlePyramid_StatueShadow_Frame1,
|
|
|
|
gTilesetAnims_BattlePyramid_StatueShadow_Frame2
|
2017-10-03 03:08:54 +02:00
|
|
|
};
|
2017-10-02 03:58:47 +02:00
|
|
|
|
2022-05-17 19:51:54 +02:00
|
|
|
static const u16 *const sTilesetAnims_BattleDomeFloorLightPals[] = {
|
2018-06-11 22:57:22 +02:00
|
|
|
gTilesetAnims_BattleDomePals0_0,
|
|
|
|
gTilesetAnims_BattleDomePals0_1,
|
|
|
|
gTilesetAnims_BattleDomePals0_2,
|
|
|
|
gTilesetAnims_BattleDomePals0_3,
|
2017-10-02 03:58:47 +02:00
|
|
|
};
|
|
|
|
|
2017-10-02 14:43:52 +02:00
|
|
|
static void ResetTilesetAnimBuffer(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
|
|
|
sTilesetDMA3TransferBufferSize = 0;
|
|
|
|
CpuFill32(0, sTilesetDMA3TransferBuffer, sizeof sTilesetDMA3TransferBuffer);
|
|
|
|
}
|
|
|
|
|
2017-10-02 14:43:52 +02:00
|
|
|
static void AppendTilesetAnimToBuffer(const u16 *src, u16 *dest, u16 size)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
|
|
|
if (sTilesetDMA3TransferBufferSize < 20)
|
|
|
|
{
|
2017-10-02 14:43:52 +02:00
|
|
|
sTilesetDMA3TransferBuffer[sTilesetDMA3TransferBufferSize].src = src;
|
|
|
|
sTilesetDMA3TransferBuffer[sTilesetDMA3TransferBufferSize].dest = dest;
|
|
|
|
sTilesetDMA3TransferBuffer[sTilesetDMA3TransferBufferSize].size = size;
|
2017-10-02 03:58:47 +02:00
|
|
|
sTilesetDMA3TransferBufferSize ++;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-10-02 14:43:52 +02:00
|
|
|
void TransferTilesetAnimsBuffer(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
|
|
|
int i;
|
|
|
|
|
|
|
|
for (i = 0; i < sTilesetDMA3TransferBufferSize; i ++)
|
|
|
|
DmaCopy16(3, sTilesetDMA3TransferBuffer[i].src, sTilesetDMA3TransferBuffer[i].dest, sTilesetDMA3TransferBuffer[i].size);
|
2019-02-08 22:07:42 +01:00
|
|
|
|
2017-10-02 03:58:47 +02:00
|
|
|
sTilesetDMA3TransferBufferSize = 0;
|
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnimations(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2017-10-02 14:43:52 +02:00
|
|
|
ResetTilesetAnimBuffer();
|
2019-02-08 22:07:42 +01:00
|
|
|
_InitPrimaryTilesetAnimation();
|
|
|
|
_InitSecondaryTilesetAnimation();
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitSecondaryTilesetAnimation(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
_InitSecondaryTilesetAnimation();
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void UpdateTilesetAnimations(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2017-10-02 14:43:52 +02:00
|
|
|
ResetTilesetAnimBuffer();
|
2019-02-08 22:07:42 +01:00
|
|
|
if (++sPrimaryTilesetAnimCounter >= sPrimaryTilesetAnimCounterMax)
|
|
|
|
sPrimaryTilesetAnimCounter = 0;
|
|
|
|
if (++sSecondaryTilesetAnimCounter >= sSecondaryTilesetAnimCounterMax)
|
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
|
|
|
|
if (sPrimaryTilesetAnimCallback)
|
|
|
|
sPrimaryTilesetAnimCallback(sPrimaryTilesetAnimCounter);
|
|
|
|
if (sSecondaryTilesetAnimCallback)
|
|
|
|
sSecondaryTilesetAnimCallback(sSecondaryTilesetAnimCounter);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void _InitPrimaryTilesetAnimation(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sPrimaryTilesetAnimCounter = 0;
|
|
|
|
sPrimaryTilesetAnimCounterMax = 0;
|
|
|
|
sPrimaryTilesetAnimCallback = NULL;
|
2018-06-21 00:41:51 +02:00
|
|
|
if (gMapHeader.mapLayout->primaryTileset && gMapHeader.mapLayout->primaryTileset->callback)
|
|
|
|
gMapHeader.mapLayout->primaryTileset->callback();
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void _InitSecondaryTilesetAnimation(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = 0;
|
|
|
|
sSecondaryTilesetAnimCallback = NULL;
|
2018-06-21 00:41:51 +02:00
|
|
|
if (gMapHeader.mapLayout->secondaryTileset && gMapHeader.mapLayout->secondaryTileset->callback)
|
|
|
|
gMapHeader.mapLayout->secondaryTileset->callback();
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_General(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sPrimaryTilesetAnimCounter = 0;
|
|
|
|
sPrimaryTilesetAnimCounterMax = 256;
|
|
|
|
sPrimaryTilesetAnimCallback = TilesetAnim_General;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Building(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sPrimaryTilesetAnimCounter = 0;
|
|
|
|
sPrimaryTilesetAnimCounterMax = 256;
|
|
|
|
sPrimaryTilesetAnimCallback = TilesetAnim_Building;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_General(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_General_Flower(timer / 16);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 1)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_General_Water(timer / 16);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 2)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_General_SandWaterEdge(timer / 16);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 3)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_General_Waterfall(timer / 16);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 4)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_General_LandWaterEdge(timer / 16);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_Building(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Building_TVTurnedOn(timer / 8);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_General_Flower(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_General_Flower);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_General_Flower[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(508)), 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_General_Water(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u8 i = timer % ARRAY_COUNT(gTilesetAnims_General_Water);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_General_Water[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(432)), 30 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_General_SandWaterEdge(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_General_SandWaterEdge);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_General_SandWaterEdge[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(464)), 10 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_General_Waterfall(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_General_Waterfall);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_General_Waterfall[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(496)), 6 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Petalburg(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = NULL;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Rustboro(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_Rustboro;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Dewford(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_Dewford;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Slateport(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_Slateport;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Mauville(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = sPrimaryTilesetAnimCounter;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_Mauville;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Lavaridge(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_Lavaridge;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Fallarbor(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = NULL;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Fortree(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = NULL;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Lilycove(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = NULL;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Mossdeep(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = NULL;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_EverGrande(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_EverGrande;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Pacifidlog(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = sPrimaryTilesetAnimCounter;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_Pacifidlog;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Sootopolis(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_Sootopolis;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_BattleFrontierOutsideWest(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_BattleFrontierOutsideWest;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_BattleFrontierOutsideEast(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_BattleFrontierOutsideEast;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Underwater(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = 128;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_Underwater;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_SootopolisGym(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = 240;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_SootopolisGym;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_Cave(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_Cave;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_EliteFour(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = 128;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_EliteFour;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_MauvilleGym(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_MauvilleGym;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_BikeShop(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_BikeShop;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_BattlePyramid(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_BattlePyramid;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
void InitTilesetAnim_BattleDome(void)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCounter = 0;
|
|
|
|
sSecondaryTilesetAnimCounterMax = sPrimaryTilesetAnimCounterMax;
|
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_BattleDome;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_Rustboro(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 0)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Rustboro_WindyWater(timer / 8, 0);
|
|
|
|
QueueAnimTiles_Rustboro_Fountain(timer / 8);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 1)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Rustboro_WindyWater(timer / 8, 1);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 2)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Rustboro_WindyWater(timer / 8, 2);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 3)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Rustboro_WindyWater(timer / 8, 3);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 4)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Rustboro_WindyWater(timer / 8, 4);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 5)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Rustboro_WindyWater(timer / 8, 5);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 6)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Rustboro_WindyWater(timer / 8, 6);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 7)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Rustboro_WindyWater(timer / 8, 7);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_Dewford(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Dewford_Flag(timer / 8);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_Slateport(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Slateport_Balloons(timer / 16);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_Mauville(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Mauville_Flowers(timer / 8, 0);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 1)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Mauville_Flowers(timer / 8, 1);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 2)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Mauville_Flowers(timer / 8, 2);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 3)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Mauville_Flowers(timer / 8, 3);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 4)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Mauville_Flowers(timer / 8, 4);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 5)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Mauville_Flowers(timer / 8, 5);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 6)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Mauville_Flowers(timer / 8, 6);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 7)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Mauville_Flowers(timer / 8, 7);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_Lavaridge(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Lavaridge_Steam(timer / 16);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 1)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Lavaridge_Lava(timer / 16);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_EverGrande(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_EverGrande_Flowers(timer / 8, 0);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 1)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_EverGrande_Flowers(timer / 8, 1);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 2)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_EverGrande_Flowers(timer / 8, 2);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 3)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_EverGrande_Flowers(timer / 8, 3);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 4)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_EverGrande_Flowers(timer / 8, 4);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 5)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_EverGrande_Flowers(timer / 8, 5);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 6)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_EverGrande_Flowers(timer / 8, 6);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 7)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_EverGrande_Flowers(timer / 8, 7);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_Pacifidlog(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Pacifidlog_LogBridges(timer / 16);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 1)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Pacifidlog_WaterCurrents(timer / 16);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_Sootopolis(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Sootopolis_StormyWater(timer / 16);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_Underwater(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Underwater_Seaweed(timer / 16);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_Cave(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 16 == 1)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_Cave_Lava(timer / 16);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_BattleFrontierOutsideWest(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_BattleFrontierOutsideWest_Flag(timer / 8);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_BattleFrontierOutsideEast(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_BattleFrontierOutsideEast_Flag(timer / 8);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_General_LandWaterEdge(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_General_LandWaterEdge);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_General_LandWaterEdge[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(480)), 10 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Lavaridge_Steam(u8 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u8 i = timer % ARRAY_COUNT(gTilesetAnims_Lavaridge_Steam);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Lavaridge_Steam[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 288)), 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
|
2021-12-04 16:25:37 +01:00
|
|
|
i = (timer + 2) % (int)ARRAY_COUNT(gTilesetAnims_Lavaridge_Steam);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Lavaridge_Steam[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 292)), 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Pacifidlog_LogBridges(u8 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u8 i = timer % ARRAY_COUNT(gTilesetAnims_Pacifidlog_LogBridges);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Pacifidlog_LogBridges[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 464)), 30 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Underwater_Seaweed(u8 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u8 i = timer % ARRAY_COUNT(gTilesetAnims_Underwater_Seaweed);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Underwater_Seaweed[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 496)), 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Pacifidlog_WaterCurrents(u8 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u8 i = timer % ARRAY_COUNT(gTilesetAnims_Pacifidlog_WaterCurrents);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Pacifidlog_WaterCurrents[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 496)), 8 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Mauville_Flowers(u16 timer_div, u8 timer_mod)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
|
|
|
timer_div -= timer_mod;
|
2021-12-04 16:25:37 +01:00
|
|
|
if (timer_div < min(ARRAY_COUNT(gTilesetAnims_Mauville_Flower1), ARRAY_COUNT(gTilesetAnims_Mauville_Flower2)))
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
timer_div %= min(ARRAY_COUNT(gTilesetAnims_Mauville_Flower1), ARRAY_COUNT(gTilesetAnims_Mauville_Flower2));
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Mauville_Flower1[timer_div], gTilesetAnims_Mauville_Flower1_VDests[timer_mod], 4 * TILE_SIZE_4BPP);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Mauville_Flower2[timer_div], gTilesetAnims_Mauville_Flower2_VDests[timer_mod], 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
timer_div %= min(ARRAY_COUNT(gTilesetAnims_Mauville_Flower1_B), ARRAY_COUNT(gTilesetAnims_Mauville_Flower2_B));
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Mauville_Flower1_B[timer_div], gTilesetAnims_Mauville_Flower1_VDests[timer_mod], 4 * TILE_SIZE_4BPP);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Mauville_Flower2_B[timer_div], gTilesetAnims_Mauville_Flower2_VDests[timer_mod], 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Rustboro_WindyWater(u16 timer_div, u8 timer_mod)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
|
|
|
timer_div -= timer_mod;
|
2021-12-04 16:25:37 +01:00
|
|
|
timer_div %= ARRAY_COUNT(gTilesetAnims_Rustboro_WindyWater);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (gTilesetAnims_Rustboro_WindyWater[timer_div])
|
2021-12-04 16:25:37 +01:00
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Rustboro_WindyWater[timer_div], gTilesetAnims_Rustboro_WindyWater_VDests[timer_mod], 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Rustboro_Fountain(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_Rustboro_Fountain);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Rustboro_Fountain[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 448)), 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Lavaridge_Lava(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_Lavaridge_Cave_Lava);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Lavaridge_Cave_Lava[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 160)), 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_EverGrande_Flowers(u16 timer_div, u8 timer_mod)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
|
|
|
timer_div -= timer_mod;
|
2021-12-04 16:25:37 +01:00
|
|
|
timer_div %= ARRAY_COUNT(gTilesetAnims_EverGrande_Flowers);
|
2017-10-02 03:58:47 +02:00
|
|
|
|
2021-12-04 16:25:37 +01:00
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_EverGrande_Flowers[timer_div], gTilesetAnims_EverGrande_VDests[timer_mod], 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Cave_Lava(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_Lavaridge_Cave_Lava);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Lavaridge_Cave_Lava[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 416)), 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Dewford_Flag(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_Dewford_Flag);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Dewford_Flag[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 170)), 6 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_BattleFrontierOutsideWest_Flag(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_BattleFrontierOutsideWest_Flag);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_BattleFrontierOutsideWest_Flag[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 218)), 6 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_BattleFrontierOutsideEast_Flag(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_BattleFrontierOutsideEast_Flag);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_BattleFrontierOutsideEast_Flag[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 218)), 6 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Slateport_Balloons(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_Slateport_Balloons);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Slateport_Balloons[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 224)), 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_MauvilleGym(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 2 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_MauvilleGym_ElectricGates(timer / 2);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_SootopolisGym(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_SootopolisGym_Waterfalls(timer / 8);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_EliteFour(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 64 == 1)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_EliteFour_GroundLights(timer / 64);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 1)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_EliteFour_WallLights(timer / 8);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_BikeShop(u16 timer)
|
|
|
|
{
|
|
|
|
if (timer % 4 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_BikeShop_BlinkingLights(timer / 4);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_BattlePyramid(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 8 == 0)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
QueueAnimTiles_BattlePyramid_Torch(timer / 8);
|
|
|
|
QueueAnimTiles_BattlePyramid_StatueShadow(timer / 8);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_BattleDome(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 4 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
BlendAnimPalette_BattleDome_FloorLights(timer / 4);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void TilesetAnim_BattleDome2(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
if (timer % 4 == 0)
|
2021-12-04 16:25:37 +01:00
|
|
|
BlendAnimPalette_BattleDome_FloorLightsNoBlend(timer / 4);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Building_TVTurnedOn(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_Building_TvTurnedOn);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Building_TvTurnedOn[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(496)), 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_SootopolisGym_Waterfalls(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % min(ARRAY_COUNT(gTilesetAnims_SootopolisGym_SideWaterfall), ARRAY_COUNT(gTilesetAnims_SootopolisGym_FrontWaterfall));
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_SootopolisGym_SideWaterfall[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 496)), 12 * TILE_SIZE_4BPP);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_SootopolisGym_FrontWaterfall[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 464)), 20 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_EliteFour_WallLights(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_EliteFour_WallLights);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_EliteFour_WallLights[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 504)), 1 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_EliteFour_GroundLights(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_EliteFour_FloorLight);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_EliteFour_FloorLight[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 480)), 4 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_MauvilleGym_ElectricGates(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_MauvilleGym_ElectricGates);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_MauvilleGym_ElectricGates[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 144)), 16 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_BikeShop_BlinkingLights(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_BikeShop_BlinkingLights);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_BikeShop_BlinkingLights[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 496)), 9 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_Sootopolis_StormyWater(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_Sootopolis_StormyWater);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_Sootopolis_StormyWater[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 240)), 96 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_BattlePyramid_Torch(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_BattlePyramid_Torch);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_BattlePyramid_Torch[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 151)), 8 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void QueueAnimTiles_BattlePyramid_StatueShadow(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2021-12-04 16:25:37 +01:00
|
|
|
u16 i = timer % ARRAY_COUNT(gTilesetAnims_BattlePyramid_StatueShadow);
|
|
|
|
AppendTilesetAnimToBuffer(gTilesetAnims_BattlePyramid_StatueShadow[i], (u16 *)(BG_VRAM + TILE_OFFSET_4BPP(NUM_TILES_IN_PRIMARY + 135)), 8 * TILE_SIZE_4BPP);
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void BlendAnimPalette_BattleDome_FloorLights(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2023-05-23 19:16:18 +02:00
|
|
|
CpuCopy16(sTilesetAnims_BattleDomeFloorLightPals[timer % ARRAY_COUNT(sTilesetAnims_BattleDomeFloorLightPals)], &gPlttBufferUnfaded[BG_PLTT_ID(8)], PLTT_SIZE_4BPP);
|
2022-08-19 17:32:00 +02:00
|
|
|
BlendPalette(BG_PLTT_ID(8), 16, gPaletteFade.y, gPaletteFade.blendColor & 0x7FFF);
|
2021-10-25 16:20:48 +02:00
|
|
|
if ((u8)FindTaskIdByFunc(Task_BattleTransition_Intro) != TASK_NONE)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2019-02-08 22:07:42 +01:00
|
|
|
sSecondaryTilesetAnimCallback = TilesetAnim_BattleDome2;
|
|
|
|
sSecondaryTilesetAnimCounterMax = 32;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2019-02-08 22:07:42 +01:00
|
|
|
static void BlendAnimPalette_BattleDome_FloorLightsNoBlend(u16 timer)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2023-05-23 19:16:18 +02:00
|
|
|
CpuCopy16(sTilesetAnims_BattleDomeFloorLightPals[timer % ARRAY_COUNT(sTilesetAnims_BattleDomeFloorLightPals)], &gPlttBufferUnfaded[BG_PLTT_ID(8)], PLTT_SIZE_4BPP);
|
2021-10-25 16:20:48 +02:00
|
|
|
if ((u8)FindTaskIdByFunc(Task_BattleTransition_Intro) == TASK_NONE)
|
2017-10-02 03:58:47 +02:00
|
|
|
{
|
2022-08-19 17:32:00 +02:00
|
|
|
BlendPalette(BG_PLTT_ID(8), 16, gPaletteFade.y, gPaletteFade.blendColor & 0x7FFF);
|
2019-02-08 22:07:42 +01:00
|
|
|
if (!--sSecondaryTilesetAnimCounterMax)
|
|
|
|
sSecondaryTilesetAnimCallback = NULL;
|
2017-10-02 03:58:47 +02:00
|
|
|
}
|
|
|
|
}
|