summaryrefslogtreecommitdiff
path: root/include/backgroundAnimations.h
blob: 104044ed7b367197494e3dc29a56386de053d5fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef BACKGROUNDANIMATIONS_H
#define BACKGROUNDANIMATIONS_H

#include "global.h"

enum {
    BG_ANIM_DEFAULT = 0,
    BG_ANIM_PALETTE = 16,
    BG_ANIM_MULTIPLE = 128,
} BgAnimFlags;

typedef struct {
    u16 vramOffset;
    u8 gfxSize;
    u8 flags; /**< @see BgAnimFlags */
    u32 gfxOffset;
} BgAnimationGfx;

typedef struct {
    const BgAnimationGfx* gfx;
    u32 unk_4;
} BgAnimationFrame;

typedef struct {
    const BgAnimationFrame* currentFrame;
    u16 unk_4;
    u16 timer;
} BgAnimation;
#define MAX_BG_ANIMATIONS 8
extern BgAnimation gBgAnimations[MAX_BG_ANIMATIONS];

extern const u16* const gUnk_080B755C[];
extern const u16 gUnk_080B77C0[];

#endif // BACKGROUNDANIMATIONS_H