![]() |
Data |
| Prev: BDC3 | Up: Map | Next: BECD |
|
Bird scripts that drive the bird laying an egg. BF38 starts here. Other readers enter at BirdScript_RiseLoop, BirdScript_IdleLoop, BirdScript_TurnLoop, BirdScript_Wander, BirdScript_BoundLoop and BirdScript_AltWander. BF68 pokes the wander loop count at BE9B. Ends immediately before Update_Task_Two_Entities.
|
|||||
|
Start script published by Update_TaskTwo_StartEntity and BF38.
|
|||||
| Data_BirdScripts | BE6D | DEFB $02,$C1 | Graphic-layout pointer Data_TaskHelperLayouts. | ||
| BE6F | DEFW $0021 | Script opcode 21 (start counted script loop). | |||
| BE71 | DEFB $09,$00 | Loop count 09 (ScriptRoutine_StartScriptLoop reads only the low byte). | |||
| BE73 | DEFB $02,$C1 | Graphic-layout pointer Data_TaskHelperLayouts. | |||
| BE75 | DEFW $0022 | Script opcode 22 (end script loop). | |||
| BE77 | DEFW $0028 | Script opcode 28 (arm the bird script-active flags). | |||
|
Rise and vertical-walk loop entered from ScriptRoutine_TaskTwoRiseOnEvent_RunStartScript.
|
|||||
| BirdScript_RiseLoop | BE79 | DEFB $02,$C1 | Graphic-layout pointer Data_TaskHelperLayouts. | ||
| BE7B | DEFW $0024 | Script opcode 24 (walk the bird vertically). | |||
| BE7D | DEFW $0001 | Script opcode 01 (jump to script address). | |||
| BE7F | DEFW BirdScript_RiseLoop | Jump to script address BirdScript_RiseLoop. | |||
|
Idle and horizontal-walk loop entered from ScriptRoutine_TaskTwoWalkVertical_RunIdleScript and ScriptRoutine_TaskTwoWalkRight_RunIdleScript.
|
|||||
| BirdScript_IdleLoop | BE81 | DEFB $02,$C1 | Graphic-layout pointer Data_TaskHelperLayouts. | ||
| BE83 | DEFW $0026 | Script opcode 26 (walk the bird horizontally). | |||
| BE85 | DEFW $0001 | Script opcode 01 (jump to script address). | |||
| BE87 | DEFW BirdScript_IdleLoop | Jump to script address BirdScript_IdleLoop. | |||
|
Turn-around and walk-right loop entered from ScriptRoutine_TaskTwoWalkHorizontal_RunTurnScript.
|
|||||
| BirdScript_TurnLoop | BE89 | DEFB $02,$C1 | Graphic-layout pointer Data_TaskHelperLayouts. | ||
| BE8B | DEFW $0025 | Script opcode 25 (walk the bird right). | |||
| BE8D | DEFW $0001 | Script opcode 01 (jump to script address). | |||
| BE8F | DEFW BirdScript_TurnLoop | Jump to script address BirdScript_TurnLoop. | |||
| BirdScript_Wander | BE91 | DEFW $0021 | Script opcode 21 (start counted script loop). | ||
| BE93 | DEFB $14,$00 | Loop count 14 (ScriptRoutine_StartScriptLoop reads only the low byte). | |||
| BE95 | DEFB $2F,$C1 | Graphic-layout pointer C12F. | |||
| BE97 | DEFW $0022 | Script opcode 22 (end script loop). | |||
| BE99 | DEFW $0021 | Script opcode 21 (start counted script loop). | |||
| BE9B | DEFB $12,$00 | Loop count 12 (rewritten by BF68). ScriptRoutine_StartScriptLoop reads the low byte. | |||
| BE9D | DEFB $2F,$C1 | Graphic-layout pointer C12F. | |||
| BE9F | DEFW $0025 | Script opcode 25 (walk the bird right). | |||
| BEA1 | DEFW $0022 | Script opcode 22 (end script loop). | |||
| BEA3 | DEFW $0021 | Script opcode 21 (start counted script loop). | |||
| BEA5 | DEFB $28,$00 | Loop count 28 (ScriptRoutine_StartScriptLoop reads only the low byte). | |||
| BEA7 | DEFB $19,$C1 | Graphic-layout pointer C119. | |||
| BEA9 | DEFW $0022 | Script opcode 22 (end script loop). | |||
| BEAB | DEFW $0021 | Script opcode 21 (start counted script loop). | |||
| BEAD | DEFB $0A,$00 | Loop count 0A (ScriptRoutine_StartScriptLoop reads only the low byte). | |||
| BEAF | DEFB $24,$C1 | Graphic-layout pointer C124. | |||
| BEB1 | DEFW $0022 | Script opcode 22 (end script loop). | |||
| BEB3 | DEFW $0027 | Script opcode 27 (spawn or refresh the bird helper). | |||
| BEB5 | DEFW $0001 | Script opcode 01 (jump to script address). | |||
| BEB7 | DEFW BirdScript_IdleLoop | Jump to script address BirdScript_IdleLoop. | |||
|
Bound and rise-on-event loop entered from BFB3 and ScriptRoutine_TaskTwoWalkHorizontal_RunBoundScript.
|
|||||
| BirdScript_BoundLoop | BEB9 | DEFB $02,$C1 | Graphic-layout pointer Data_TaskHelperLayouts. | ||
| BEBB | DEFW $0029 | Script opcode 29 (raise the bird on its event bit). | |||
| BEBD | DEFW $0001 | Script opcode 01 (jump to script address). | |||
| BEBF | DEFW BirdScript_BoundLoop | Jump to script address BirdScript_BoundLoop. | |||
|
Alternate wander script entered from Update_TaskTwo_AltScript.
|
|||||
| BirdScript_AltWander | BEC1 | DEFW $0021 | Script opcode 21 (start counted script loop). | ||
| BEC3 | DEFB $10,$00 | Loop count 10 (ScriptRoutine_StartScriptLoop reads only the low byte). | |||
| BEC5 | DEFB $2F,$C1 | Graphic-layout pointer C12F. | |||
| BEC7 | DEFW $0022 | Script opcode 22 (end script loop). | |||
| BEC9 | DEFW $0001 | Script opcode 01 (jump to script address). | |||
| BECB | DEFW BirdScript_TurnLoop | Jump to script address BirdScript_TurnLoop. | |||
| Prev: BDC3 | Up: Map | Next: BECD |