2017-12-11 17:20:01 +00:00
|
|
|
TILE_WIDTH EQU 8 ; pixels
|
2018-01-12 03:16:17 +00:00
|
|
|
LEN_1BPP_TILE EQU 1 * TILE_WIDTH ; bytes
|
|
|
|
LEN_2BPP_TILE EQU 2 * TILE_WIDTH ; bytes
|
2017-12-11 17:20:01 +00:00
|
|
|
|
|
|
|
NUM_PAL_COLORS EQU 4
|
2018-01-23 00:40:17 +00:00
|
|
|
PAL_COLOR_SIZE EQU 2
|
2018-01-23 00:57:35 +00:00
|
|
|
PALETTE_SIZE EQU NUM_PAL_COLORS * PAL_COLOR_SIZE
|
2017-12-11 17:20:01 +00:00
|
|
|
|
2018-01-18 16:16:24 +00:00
|
|
|
PALRGB_WHITE EQUS "palred 31 + palgreen 31 + palblue 31" ; $7fff
|
|
|
|
|
2018-01-23 15:46:26 +00:00
|
|
|
|
2018-01-09 23:08:40 +00:00
|
|
|
SCREEN_WIDTH EQU 20 ; tiles
|
2017-12-11 17:20:01 +00:00
|
|
|
SCREEN_HEIGHT EQU 18 ; tiles
|
2018-01-09 23:08:40 +00:00
|
|
|
SCREEN_WIDTH_PX EQU SCREEN_WIDTH * TILE_WIDTH ; pixels
|
2017-12-11 17:20:01 +00:00
|
|
|
SCREEN_HEIGHT_PX EQU SCREEN_HEIGHT * TILE_WIDTH ; pixels
|
|
|
|
|
|
|
|
BG_MAP_WIDTH EQU 32 ; tiles
|
|
|
|
BG_MAP_HEIGHT EQU 32 ; tiles
|
|
|
|
WMISC_WIDTH EQU 6 * 4
|
|
|
|
WMISC_HEIGHT EQU 5 * 4
|
|
|
|
|
2018-01-23 15:46:26 +00:00
|
|
|
|
2018-01-09 23:08:40 +00:00
|
|
|
HP_BAR_LENGTH EQU 6 ; tiles
|
2017-12-11 17:20:01 +00:00
|
|
|
EXP_BAR_LENGTH EQU 8 ; tiles
|
2018-01-09 23:08:40 +00:00
|
|
|
HP_BAR_LENGTH_PX EQU HP_BAR_LENGTH * TILE_WIDTH ; pixels
|
2017-12-11 17:20:01 +00:00
|
|
|
EXP_BAR_LENGTH_PX EQU EXP_BAR_LENGTH * TILE_WIDTH ; pixels
|
2017-12-15 17:31:18 +00:00
|
|
|
|
2018-01-25 22:00:31 +00:00
|
|
|
; GetHPPal return values (see home.asm)
|
|
|
|
HP_GREEN EQU 0
|
|
|
|
HP_YELLOW EQU 1
|
|
|
|
HP_RED EQU 2
|
|
|
|
|
2018-01-23 15:46:26 +00:00
|
|
|
|
2018-01-10 18:47:57 +00:00
|
|
|
; 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
|
|
|
|
NUM_SPRITE_OAM_STRUCTS EQU 40 ; see Sprites
|
2018-01-23 15:46:26 +00:00
|
|
|
|
|
|
|
|
|
|
|
; PokeAnims indexes (see engine/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
|