![]() |
Routines |
| Prev: F006 | Up: Map | Next: F03E |
|
Used by the routine at Handler_Events.
Event 02: nudge the first actor.
|
||||
| Event_NudgeActor | F011 | LD IX,($6430) | IX=*ReferenceActors. | |
| Event_NudgeActor_Target | F015 | LD A,(IX+$00) | Return if the terminator FF is reached. | |
| F018 | INC A | |||
| F019 | RET Z | |||
| F01A | LD A,(IX+$09) | Return if the actor already has a vertical delta. | ||
| F01D | OR A | |||
| F01E | RET NZ | |||
| F01F | LD A,(IX+$0C) | Jump to Event_NudgeActor_Skip if there is no stored destination. | ||
| F022 | OR A | |||
| F023 | JR Z,Event_NudgeActor_Skip | |||
| F025 | LD A,(IX+$06) | Jump to Event_NudgeActor_Branch if the actor is above the destination. | ||
| F028 | CP (IX+$0B) | |||
| F02B | JR NC,Event_NudgeActor_Branch | |||
| F02D | LD (IX+$09),$FE | Write FE as the vertical delta. | ||
| F031 | JR Event_NudgeActor_Skip | Jump to Event_NudgeActor_Skip. | ||
| Event_NudgeActor_Branch | F033 | LD (IX+$09),$02 | Write 02 as the vertical delta. | |
| Event_NudgeActor_Skip | F037 | LD DE,$000D | IX+=000D. | |
| F03A | ADD IX,DE | |||
| F03C | JR Event_NudgeActor_Target | Jump to Event_NudgeActor_Target. | ||
| Prev: F006 | Up: Map | Next: F03E |