![]() |
Routines |
| Prev: 61446 | Up: Map | Next: 61502 |
|
Used by the routine at Handler_Events.
Event 2: nudge the first actor.
|
||||
| Event_NudgeActor | 61457 | LD IX,(25648) | IX=*ReferenceActors. | |
| Event_NudgeActor_Target | 61461 | LD A,(IX+0) | Return if the terminator 255 is reached. | |
| 61464 | INC A | |||
| 61465 | RET Z | |||
| 61466 | LD A,(IX+9) | Return if the actor already has a vertical delta. | ||
| 61469 | OR A | |||
| 61470 | RET NZ | |||
| 61471 | LD A,(IX+12) | Jump to Event_NudgeActor_Skip if there is no stored destination. | ||
| 61474 | OR A | |||
| 61475 | JR Z,Event_NudgeActor_Skip | |||
| 61477 | LD A,(IX+6) | Jump to Event_NudgeActor_Branch if the actor is above the destination. | ||
| 61480 | CP (IX+11) | |||
| 61483 | JR NC,Event_NudgeActor_Branch | |||
| 61485 | LD (IX+9),254 | Write 254 as the vertical delta. | ||
| 61489 | JR Event_NudgeActor_Skip | Jump to Event_NudgeActor_Skip. | ||
| Event_NudgeActor_Branch | 61491 | LD (IX+9),2 | Write 2 as the vertical delta. | |
| Event_NudgeActor_Skip | 61495 | LD DE,13 | IX+=0013. | |
| 61498 | ADD IX,DE | |||
| 61500 | JR Event_NudgeActor_Target | Jump to Event_NudgeActor_Target. | ||
| Prev: 61446 | Up: Map | Next: 61502 |