2021-03-16 14:53:42 -07:00
|
|
|
; overworld_sprite struct members (see data/sprites/sprites.asm)
|
|
|
|
rsreset
|
2022-06-06 14:25:42 -07:00
|
|
|
DEF SPRITEDATA_ADDR rw ; 0
|
|
|
|
DEF SPRITEDATA_SIZE rb ; 2
|
|
|
|
DEF SPRITEDATA_BANK rb ; 3
|
|
|
|
DEF SPRITEDATA_TYPE rb ; 4
|
|
|
|
DEF SPRITEDATA_PALETTE rb ; 5
|
|
|
|
DEF NUM_SPRITEDATA_FIELDS EQU _RS
|
2017-12-11 22:06:23 -08:00
|
|
|
|
|
|
|
; sprite types
|
2018-01-31 08:38:45 -08:00
|
|
|
const_def 1
|
2017-12-12 09:18:11 -08:00
|
|
|
const WALKING_SPRITE ; 1
|
|
|
|
const STANDING_SPRITE ; 2
|
|
|
|
const STILL_SPRITE ; 3
|
2017-12-11 22:06:23 -08: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
|
2023-11-05 02:07:32 -08:00
|
|
|
const PAL_OW_GREY ; 4
|
2023-10-07 03:47:37 -07:00
|
|
|
const PAL_OW_TREE ; 5
|
|
|
|
const PAL_OW_ROCK ; 6
|
|
|
|
const PAL_OW_MISC ; 7
|
2017-12-11 22:06:23 -08:00
|
|
|
|
2017-12-24 10:46:34 -08:00
|
|
|
; object_events set bit 3 so as not to use the sprite's default palette
|
2018-01-12 00:07:48 -08:00
|
|
|
; MapObjectPals indexes (see gfx/overworld/npc_sprites.pal)
|
2018-01-31 08:38:45 -08:00
|
|
|
const_def 1 << 3
|
2017-12-11 22:06:23 -08:00
|
|
|
const PAL_NPC_RED ; 8
|
|
|
|
const PAL_NPC_BLUE ; 9
|
|
|
|
const PAL_NPC_GREEN ; a
|
|
|
|
const PAL_NPC_BROWN ; b
|
2023-11-05 02:07:32 -08:00
|
|
|
const PAL_NPC_GREY ; c
|
|
|
|
const PAL_NPC_TREE ; d
|
|
|
|
const PAL_NPC_ROCK ; e
|
|
|
|
const PAL_NPC_MISC ; f
|
2024-02-03 06:09:45 -08:00
|
|
|
|
|
|
|
; level selection menu sprite palettes
|
|
|
|
const_def
|
|
|
|
const PAL_LSM_PLAYER ; 0
|
|
|
|
const PAL_LSM_TOD ; 1
|
|
|
|
const PAL_LSM_TROPHY_1 ; 2
|
|
|
|
const PAL_LSM_TROPHY_2 ; 3
|
|
|
|
const PAL_LSM_TROPHY_3 ; 4
|
|
|
|
const PAL_LSM_TROPHY_4 ; 5
|