2018-01-12 11:15:44 +00:00
|
|
|
; overworld_sprite struct members (see data/sprites.asm)
|
2017-12-12 06:06:23 +00:00
|
|
|
const_def
|
2017-12-26 17:50:32 +00:00
|
|
|
const SPRITEDATA_ADDR ; 0
|
2020-07-08 20:20:15 +00:00
|
|
|
const_skip ; high SPRITEDATA_ADDR byte
|
2017-12-26 17:50:32 +00:00
|
|
|
const SPRITEDATA_SIZE ; 2
|
|
|
|
const SPRITEDATA_BANK ; 3
|
|
|
|
const SPRITEDATA_TYPE ; 4
|
|
|
|
const SPRITEDATA_PALETTE ; 5
|
|
|
|
NUM_SPRITEDATA_FIELDS EQU const_value
|
2017-12-12 06:06:23 +00:00
|
|
|
|
|
|
|
; sprite types
|
2018-01-31 16:38:45 +00:00
|
|
|
const_def 1
|
2017-12-12 17:18:11 +00:00
|
|
|
const WALKING_SPRITE ; 1
|
|
|
|
const STANDING_SPRITE ; 2
|
|
|
|
const STILL_SPRITE ; 3
|
2017-12-12 06:06:23 +00:00
|
|
|
|
|
|
|
; sprite palettes
|
|
|
|
const_def
|
|
|
|
const PAL_OW_RED ; 0
|
|
|
|
const PAL_OW_BLUE ; 1
|
|
|
|
const PAL_OW_GREEN ; 2
|
|
|
|
const PAL_OW_BROWN ; 3
|
|
|
|
const PAL_OW_PINK ; 4
|
|
|
|
const PAL_OW_SILVER ; 5
|
|
|
|
const PAL_OW_TREE ; 6
|
|
|
|
const PAL_OW_ROCK ; 7
|
|
|
|
|
2017-12-24 18:46:34 +00:00
|
|
|
; object_events set bit 3 so as not to use the sprite's default palette
|
2018-01-12 08:07:48 +00:00
|
|
|
; MapObjectPals indexes (see gfx/overworld/npc_sprites.pal)
|
2018-01-31 16:38:45 +00:00
|
|
|
const_def 1 << 3
|
2017-12-12 06:06:23 +00:00
|
|
|
const PAL_NPC_RED ; 8
|
|
|
|
const PAL_NPC_BLUE ; 9
|
|
|
|
const PAL_NPC_GREEN ; a
|
|
|
|
const PAL_NPC_BROWN ; b
|
|
|
|
const PAL_NPC_PINK ; c
|
|
|
|
const PAL_NPC_SILVER ; d
|
|
|
|
const PAL_NPC_TREE ; e
|
|
|
|
const PAL_NPC_ROCK ; f
|