diff options
author | Marcus Huderle <huderlem@gmail.com> | 2018-01-04 19:12:49 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-04 19:12:49 -0800 |
commit | f0e98a9204bf19981c0c9652bc9ed82ae95438e4 (patch) | |
tree | 5b25b91f7d9acbae8e0754fe89af800d0993fbaa /include/sprite.h | |
parent | b1a7733c1cead8ed3d4a58c42d638afd0ead8ab0 (diff) | |
parent | acf290ec6f6127a4ac84403d30e50e4e7670693c (diff) |
Merge pull request #496 from PikalaxALT/slot_machine
Slot machine
Diffstat (limited to 'include/sprite.h')
-rw-r--r-- | include/sprite.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/sprite.h b/include/sprite.h index 13c76c84b..b72c09989 100644 --- a/include/sprite.h +++ b/include/sprite.h @@ -120,10 +120,6 @@ union AffineAnimCmd {.jump = {.type = AFFINEANIMCMDTYPE_JUMP, .target = _target}} #define AFFINEANIMCMD_END \ {.type = AFFINEANIMCMDTYPE_END} -#define AFFINEANIMCMD_LOOP(_count) \ - {.loop = {.type = AFFINEANIMCMDTYPE_LOOP, .count = _count}} -#define AFFINEANIMCMD_JUMP(_target) \ - {.jump = {.type = AFFINEANIMCMDTYPE_JUMP, .target = _target}} struct AffineAnimState { @@ -172,6 +168,8 @@ struct SpriteTemplate void (*callback)(struct Sprite *); }; +typedef void (*SpriteCallback)(struct Sprite *); + struct Sprite { /*0x00*/ struct OamData oam; @@ -180,7 +178,7 @@ struct Sprite /*0x10*/ const union AffineAnimCmd *const *affineAnims; /*0x14*/ const struct SpriteTemplate *template; /*0x18*/ const struct SubspriteTable *subspriteTables; - /*0x1C*/ void (*callback)(struct Sprite *); + /*0x1C*/ SpriteCallback callback; /*0x20*/ struct Coords16 pos1; /*0x24*/ struct Coords16 pos2; @@ -238,6 +236,8 @@ extern s16 gSpriteCoordOffsetX; extern s16 gSpriteCoordOffsetY; extern u8 gReservedSpritePaletteCount; +extern u8 gOamLimit; + extern struct Sprite gSprites[]; void ResetSpriteData(void); |