diff options
author | Rangi <remy.oukaour+rangi@gmail.com> | 2020-09-22 12:57:02 -0400 |
---|---|---|
committer | Rangi <remy.oukaour+rangi@gmail.com> | 2020-09-22 12:57:02 -0400 |
commit | 3b4ea37c363b70ea1683059329879466dec4a094 (patch) | |
tree | 430b2260d025fc28880ce3f76882d97dcd50507d /constants/gfx_constants.asm | |
parent | 268e2cae0b98779cfb0c590ab9612151c752e868 (diff) |
Replace enum with const, and update many constants to be more like pokegold
Diffstat (limited to 'constants/gfx_constants.asm')
-rw-r--r-- | constants/gfx_constants.asm | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/constants/gfx_constants.asm b/constants/gfx_constants.asm index 52f74e5..772d2e6 100644 --- a/constants/gfx_constants.asm +++ b/constants/gfx_constants.asm @@ -8,7 +8,6 @@ PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE PALRGB_WHITE EQUS "palred 31 + palgreen 31 + palblue 31" ; $7fff - SCREEN_WIDTH EQU 20 ; tiles SCREEN_HEIGHT EQU 18 ; tiles SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels @@ -23,7 +22,6 @@ SCREEN_META_HEIGHT EQU 5 ; metatiles SURROUNDING_WIDTH EQU SCREEN_META_WIDTH * METATILE_WIDTH ; tiles SURROUNDING_HEIGHT EQU SCREEN_META_HEIGHT * METATILE_WIDTH ; tiles - HP_BAR_LENGTH EQU 6 ; tiles EXP_BAR_LENGTH EQU 8 ; tiles HP_BAR_LENGTH_PX EQU HP_BAR_LENGTH * TILE_WIDTH ; pixels @@ -34,8 +32,8 @@ HP_GREEN EQU 0 HP_YELLOW EQU 1 HP_RED EQU 2 -SPRITEBUFFERSIZE EQU 7*7 * 8 ; 7 * 7 (tiles) * 8 (bytes per tile) -DOUBLESPRITEBUFFERSIZE EQU 2*SPRITEBUFFERSIZE +SPRITEBUFFERSIZE EQU 7 * 7 * 8 ; 7 * 7 (tiles) * 8 (bytes per tile) +DOUBLESPRITEBUFFERSIZE EQU 2 * SPRITEBUFFERSIZE ; sprite_oam_struct members (see macros/wram.asm) const_def @@ -45,16 +43,3 @@ DOUBLESPRITEBUFFERSIZE EQU 2*SPRITEBUFFERSIZE const SPRITEOAMSTRUCT_ATTRIBUTES ; 3 SPRITEOAMSTRUCT_LENGTH EQU const_value NUM_SPRITE_OAM_STRUCTS EQU 40 ; see wVirtualOAM - - -; PokeAnims indexes (see engine/gfx/pic_animation.asm) - const_def - const ANIM_MON_SLOW - const ANIM_MON_NORMAL - const ANIM_MON_MENU - const ANIM_MON_TRADE - const ANIM_MON_EVOLVE - const ANIM_MON_HATCH - const ANIM_MON_UNUSED - const ANIM_MON_EGG1 - const ANIM_MON_EGG2 |