2022-06-06 14:25:42 -07:00
|
|
|
DEF TILE_WIDTH EQU 8 ; pixels
|
|
|
|
DEF LEN_1BPP_TILE EQU 1 * TILE_WIDTH ; bytes
|
|
|
|
DEF LEN_2BPP_TILE EQU 2 * TILE_WIDTH ; bytes
|
2017-12-11 09:20:01 -08:00
|
|
|
|
2022-06-06 14:25:42 -07:00
|
|
|
DEF NUM_PAL_COLORS EQU 4
|
|
|
|
DEF PAL_COLOR_SIZE EQU 2
|
|
|
|
DEF PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE
|
2017-12-11 09:20:01 -08:00
|
|
|
|
2022-06-06 14:25:42 -07:00
|
|
|
DEF PALRGB_WHITE EQU palred 31 + palgreen 31 + palblue 31 ; $7fff
|
2018-01-18 08:16:24 -08:00
|
|
|
|
2022-06-06 14:25:42 -07:00
|
|
|
DEF SCREEN_WIDTH EQU 20 ; tiles
|
|
|
|
DEF SCREEN_HEIGHT EQU 18 ; tiles
|
|
|
|
DEF SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels
|
|
|
|
DEF SCREEN_HEIGHT_PX EQU SCREEN_HEIGHT * TILE_WIDTH ; pixels
|
2017-12-11 09:20:01 -08:00
|
|
|
|
2022-06-06 14:25:42 -07:00
|
|
|
DEF BG_MAP_WIDTH EQU 32 ; tiles
|
|
|
|
DEF BG_MAP_HEIGHT EQU 32 ; tiles
|
2018-03-19 08:36:14 -07:00
|
|
|
|
2022-06-06 14:25:42 -07:00
|
|
|
DEF METATILE_WIDTH EQU 4 ; tiles
|
|
|
|
DEF SCREEN_META_WIDTH EQU 6 ; metatiles
|
|
|
|
DEF SCREEN_META_HEIGHT EQU 5 ; metatiles
|
|
|
|
DEF SURROUNDING_WIDTH EQU SCREEN_META_WIDTH * METATILE_WIDTH ; tiles
|
|
|
|
DEF SURROUNDING_HEIGHT EQU SCREEN_META_HEIGHT * METATILE_WIDTH ; tiles
|
|
|
|
DEF MAP_CONNECTION_PADDING_WIDTH EQU 3 ; metatiles
|
2017-12-11 09:20:01 -08:00
|
|
|
|
2022-06-06 14:25:42 -07:00
|
|
|
DEF HP_BAR_LENGTH EQU 6 ; tiles
|
|
|
|
DEF EXP_BAR_LENGTH EQU 8 ; tiles
|
|
|
|
DEF HP_BAR_LENGTH_PX EQU HP_BAR_LENGTH * TILE_WIDTH ; pixels
|
|
|
|
DEF EXP_BAR_LENGTH_PX EQU EXP_BAR_LENGTH * TILE_WIDTH ; pixels
|
2017-12-15 09:31:18 -08:00
|
|
|
|
2021-03-16 14:53:42 -07:00
|
|
|
; GetHPPal return values (see home/tilemap.asm)
|
2022-06-06 14:25:42 -07:00
|
|
|
DEF HP_GREEN EQU 0
|
|
|
|
DEF HP_YELLOW EQU 1
|
|
|
|
DEF HP_RED EQU 2
|
2018-01-25 14:00:31 -08:00
|
|
|
|
2022-09-10 22:05:07 -07:00
|
|
|
; sprite_oam_struct members (see macros/ram.asm)
|
2021-03-04 15:13:33 -08:00
|
|
|
rsreset
|
2022-06-06 14:25:42 -07:00
|
|
|
DEF SPRITEOAMSTRUCT_YCOORD rb ; 0
|
|
|
|
DEF SPRITEOAMSTRUCT_XCOORD rb ; 1
|
|
|
|
DEF SPRITEOAMSTRUCT_TILE_ID rb ; 2
|
|
|
|
DEF SPRITEOAMSTRUCT_ATTRIBUTES rb ; 3
|
|
|
|
DEF SPRITEOAMSTRUCT_LENGTH EQU _RS
|
2022-07-09 14:18:22 -07:00
|
|
|
DEF NUM_SPRITE_OAM_STRUCTS EQU 40 ; see wShadowOAM
|
2022-06-06 14:25:42 -07:00
|
|
|
|
2023-09-02 04:01:45 -07:00
|
|
|
; see wUsedSprites
|
|
|
|
DEF WALKING_SPRITE_GFX_LIST_CAPACITY EQU 9
|
|
|
|
DEF STILL_SPRITE_GFX_LIST_CAPACITY EQU 10
|
|
|
|
DEF SPRITE_GFX_LIST_CAPACITY EQU 1 + WALKING_SPRITE_GFX_LIST_CAPACITY + STILL_SPRITE_GFX_LIST_CAPACITY
|
2018-10-27 17:21:00 -07:00
|
|
|
|
2018-04-01 08:01:51 -07:00
|
|
|
; PokeAnims indexes (see engine/gfx/pic_animation.asm)
|
2018-01-23 07:46:26 -08:00
|
|
|
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
|
2018-07-22 20:42:50 -07:00
|
|
|
const ANIM_MON_HOF
|
2018-01-23 07:46:26 -08:00
|
|
|
const ANIM_MON_EGG1
|
|
|
|
const ANIM_MON_EGG2
|
2023-08-29 09:33:20 -07:00
|
|
|
|
|
|
|
; LoadHUD indexes (see engine/gfx/hud.asm)
|
|
|
|
const_def 1
|
|
|
|
const HUD_OVERWORLD ; 1
|
|
|
|
DEF NUM_HUD_TYPES EQU const_value - 1
|
2023-09-25 12:57:47 -07:00
|
|
|
|
|
|
|
; board menu graphics
|
|
|
|
BOARD_MENU_ITEM_WIDTH EQU 3
|
|
|
|
BOARD_MENU_ITEM_HEIGHT EQU 3
|
|
|
|
BOARD_MENU_ITEM_SIZE EQU BOARD_MENU_ITEM_WIDTH * BOARD_MENU_ITEM_HEIGHT
|
|
|
|
DIE_WIDTH EQU 2
|
|
|
|
DIE_HEIGHT EQU 2
|
|
|
|
DIE_SIZE EQU DIE_WIDTH * DIE_HEIGHT
|
2023-09-26 11:09:13 -07:00
|
|
|
DIE_NUMBER_WIDTH EQU 2
|
|
|
|
DIE_NUMBER_HEIGHT EQU 2
|
|
|
|
DIE_NUMBER_SIZE EQU DIE_NUMBER_WIDTH * DIE_NUMBER_HEIGHT
|