Player management [Commit 1] (#38)

This commit is contained in:
xCrystal
2024-03-08 18:56:26 +01:00
parent bb0240e279
commit dbb340515f
18 changed files with 120 additions and 200 deletions

18
constants/player_constants.asm Executable file
View File

@@ -0,0 +1,18 @@
; see GetPlayerField (home/player.asm) and Players (data/players/players.asm)
; player characters
const_def
const PLAYER_CHRIS
const PLAYER_KRIS
const PLAYER_GREEN
DEF NUM_PLAYER_CHARACTERS EQU const_value
; field ids in the Players table
rsreset
DEF PLAYERDATA_STATE_SPRITES rw
DEF PLAYERDATA_NPC_PAL rb
DEF PLAYERDATA_FISHING_SPRITE rw
DEF PLAYERDATA_FRONTPIC rw
DEF PLAYERDATA_BACKPIC rw
DEF PLAYERDATA_PIC_PAL rw
DEF PLAYERDATA_LENGTH EQU _RS