diff options
Diffstat (limited to 'constants')
-rw-r--r-- | constants/gfx_constants.asm | 12 | ||||
-rwxr-xr-x | constants/item_constants.asm | 3 | ||||
-rwxr-xr-x | constants/palette_constants.asm | 14 |
3 files changed, 13 insertions, 16 deletions
diff --git a/constants/gfx_constants.asm b/constants/gfx_constants.asm index e6eb50db..483bafa9 100644 --- a/constants/gfx_constants.asm +++ b/constants/gfx_constants.asm @@ -2,18 +2,6 @@ TILE_WIDTH EQU 8 ; pixels LEN_1BPP_TILE EQU 1 * TILE_WIDTH ; bytes LEN_2BPP_TILE EQU 2 * TILE_WIDTH ; bytes - const_def - const SHADE_WHITE ; %00 - const SHADE_LIGHT ; %01 - const SHADE_DARK ; %10 - const SHADE_BLACK ; %11 -NUM_PAL_COLORS EQU const_value - -PAL_COLOR_SIZE EQU 2 -PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE - -NUM_ACTIVE_PALS EQU 4 - SCREEN_WIDTH EQU 20 SCREEN_HEIGHT EQU 18 SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels diff --git a/constants/item_constants.asm b/constants/item_constants.asm index 67416600..bf99ec9b 100755 --- a/constants/item_constants.asm +++ b/constants/item_constants.asm @@ -223,3 +223,6 @@ assert NUM_TMS == const_value - TM01, "NUM_TMS ({d:NUM_TMS}) does not match the ; These fit in 7 bytes, with one unused bit left over. __tmhm_value__ = NUM_TMS + NUM_HMS + 1 UNUSED_TMNUM EQU __tmhm_value__ + +; used for Time Capsule held item compatibility +TWISTEDSPOON_GSC EQU $60 diff --git a/constants/palette_constants.asm b/constants/palette_constants.asm index a16999e7..00b5748d 100755 --- a/constants/palette_constants.asm +++ b/constants/palette_constants.asm @@ -1,9 +1,15 @@ ; monochrome palette color ids const_def - const WHITE - const LIGHT_GRAY - const DARK_GRAY - const BLACK + const SHADE_WHITE ; %00 + const SHADE_LIGHT ; %01 + const SHADE_DARK ; %10 + const SHADE_BLACK ; %11 +NUM_PAL_COLORS EQU const_value + +PAL_COLOR_SIZE EQU 2 +PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE + +NUM_ACTIVE_PALS EQU 4 ; pal/blk packets ; SetPalFunctions indexes (see engine/gfx/palettes.asm) |