diff options
author | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-04 18:13:33 -0500 |
---|---|---|
committer | Rangi <remy.oukaour+rangi42@gmail.com> | 2021-03-04 18:15:38 -0500 |
commit | 98da09b3e90b6a132ce6d2431999485593aef0c9 (patch) | |
tree | 3e0aa3dc9820b40dfdedaafbc5f884b7b87faac2 /constants/gfx_constants.asm | |
parent | ef20126fe5459789c559b8b550f0bb0da52663ef (diff) |
Define more struct offset constants with rsreset instead of const_def
This was discussed in #739
Diffstat (limited to 'constants/gfx_constants.asm')
-rw-r--r-- | constants/gfx_constants.asm | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/constants/gfx_constants.asm b/constants/gfx_constants.asm index c05c0fb8b..09d2d4868 100644 --- a/constants/gfx_constants.asm +++ b/constants/gfx_constants.asm @@ -34,12 +34,12 @@ HP_YELLOW EQU 1 HP_RED EQU 2 ; sprite_oam_struct members (see macros/wram.asm) - const_def - const SPRITEOAMSTRUCT_YCOORD ; 0 - const SPRITEOAMSTRUCT_XCOORD ; 1 - const SPRITEOAMSTRUCT_TILE_ID ; 2 - const SPRITEOAMSTRUCT_ATTRIBUTES ; 3 -SPRITEOAMSTRUCT_LENGTH EQU const_value +rsreset +SPRITEOAMSTRUCT_YCOORD rb ; 0 +SPRITEOAMSTRUCT_XCOORD rb ; 1 +SPRITEOAMSTRUCT_TILE_ID rb ; 2 +SPRITEOAMSTRUCT_ATTRIBUTES rb ; 3 +SPRITEOAMSTRUCT_LENGTH EQU _RS NUM_SPRITE_OAM_STRUCTS EQU 40 ; see wVirtualOAM SPRITE_GFX_LIST_CAPACITY EQU 32 ; see wUsedSprites |