Prev: 8B69 Up: Map Next: 8EF7
8EE9: State Data: Boney
Boney's entity state record (000E bytes). This is the first slot of the complex entity table walked from StateData_Boney and backed up to Buffer_EntityStateBackup by Backup_Entity_And_Game_State. Field names match StateData_SimpleEntities: flags byte 1 at F2EA (IX+01), flags byte 2 at B1BE (IX+02), flags byte 3 at Update_Berk_ReadControls (IX+03), room and position at PopulateDisplayBuffer_VisibleEntitiesContinue, Process_GraphicLayoutData_Entity, F2FA, F301 and F30F, direction and state at B344 and Update_Berk_Movement_And_Script_PartA, layout at IX+0A (see D82F and DA04 which restore GraphicLayout_Boney), and extra state at B3A9, ScriptRoutine_TaskFourRandomiseExtra and ScriptRoutine_TaskFourStepToward. Flags byte 3 at IX+03 for Berk and most movers holds: bit 00 is script locked (ignore input, also set while facing or moving up), bit 01 is facing left when set and facing right when reset, bit 02 is the mid interaction or push latch, bit 03 is set at B609, B760, B872 and B922 and reset at Berk_ReadControls_Idle, F052 and F0A7, bit 04 is the carrying flag (set at Script_PutDown_SetCarryingFlag, reset at ScriptRoutine_PickUpHeld, tested by the Jump If Carrying script command at EF79), bit 05 is set at random at D522, tested at Collect_Entity_TypeZeroBit5 and reset at D4BD, bit 06 is the can fall or gravity latch, and bit 07 is the rising or special vertical state latch. Direction and state at IX+09 uses 01 to face left, 02 to face right, 04 to face down, and 08 to face up (see ScriptRoutine_FaceRight through ScriptRoutine_FaceDown).
Boney (type 01, room 01, layout GraphicLayout_Boney).
StateData_Boney 8EE9 DEFB $01 Type: 01.
8EEA DEFB $1F Flags byte 1: 1F.
8EEB DEFB $00 Flags byte 2: 00.
8EEC DEFB $00 Flags byte 3: 00.
8EED DEFB $01 Room: 01.
8EEE DEFB $1A Y coordinate: 1A.
8EEF DEFB $1D Y extent: 1D.
8EF0 DEFB $64 X coordinate: 64.
8EF1 DEFB $65 X extent: 65.
8EF2 DEFB $00 Direction / state: 00.
Pointer_BoneyGraphicLayout 8EF3 DEFW GraphicLayout_Boney Layout: GraphicLayout_Boney.
8EF5 DEFW $0000 Extra state.
Prev: 8B69 Up: Map Next: 8EF7