![]() |
Routines |
| Prev: 49087 | Up: Map | Next: 49152 |
|
Walk the task-two entity right while its x-extent stays inside the allowed band.
|
||||||||
| ScriptRoutine_TaskTwoWalkRight | 49130 | LD A,(IX+8) | Load A with the current entity's x-extent. | |||||
| 49133 | CP 152 | Is the current entity's x-extent less than 152? If not, jump to ScriptRoutine_TaskTwoWalkRight_RunIdleScript. | ||||||
| 49135 | JR NC,ScriptRoutine_TaskTwoWalkRight_RunIdleScript | |||||||
| 49137 | INC (IX+7) | Move this entity one character right. | ||||||
| 49140 | INC (IX+8) | |||||||
| 49143 | JP AdvanceScriptInstruction | Jump to AdvanceScriptInstruction to run the next script instruction. | ||||||
|
Right-walk finished at X-extent 152: run idle script BirdScript_IdleLoop.
|
||||||||
| ScriptRoutine_TaskTwoWalkRight_RunIdleScript | 49146 | LD HL,48769 | Point HL at bird script data BirdScript_IdleLoop. | |||||
| 49149 | JP ScriptInstruction | Jump to ScriptInstruction to execute the script instruction at HL. | ||||||
| Prev: 49087 | Up: Map | Next: 49152 |