![]() |
Routines |
| Prev: 61276 | Up: Map | Next: 61395 |
|
Used by the routine at Handler_Events.
Event 8: start an actor walking.
|
||||
| Event_StartActor | 61322 | LD IX,(25648) | IX=*ReferenceActors. | |
| Event_StartActor_Target | 61326 | LD A,(IX+0) | Return if the terminator 255 is reached. | |
| 61329 | CP 255 | |||
| 61331 | RET Z | |||
| 61332 | BIT 7,A | Jump to Event_StartActor_Continue if this actor is hidden. | ||
| 61334 | JR NZ,Event_StartActor_Continue | |||
| 61336 | LD A,(IX+8) | Jump to Event_StartActor_Continue if the actor already has a delta. | ||
| 61339 | OR (IX+9) | |||
| 61342 | JR NZ,Event_StartActor_Continue | |||
| 61344 | LD A,(IX+5) | Jump to Event_StartActor_Skip if there is no horizontal destination. | ||
| 61347 | OR A | |||
| 61348 | JR Z,Event_StartActor_Skip | |||
| 61350 | CP (IX+0) | Jump to Event_StartActor_Branch if the actor is left of the destination. | ||
| 61353 | JR NC,Event_StartActor_Branch | |||
| 61355 | LD (IX+8),254 | Write 254 as the horizontal delta. | ||
| 61359 | JR Event_StartActor_Continue | Jump to Event_StartActor_Continue. | ||
| Event_StartActor_Branch | 61361 | LD (IX+8),2 | Write 2 as the horizontal delta. | |
| 61365 | JR Event_StartActor_Continue | Jump to Event_StartActor_Continue. | ||
| Event_StartActor_Skip | 61367 | LD A,(IX+6) | Jump to Event_StartActor_Continue if there is no vertical destination. | |
| 61370 | OR A | |||
| 61371 | JR Z,Event_StartActor_Continue | |||
| 61373 | CP (IX+1) | Jump to Event_StartActor_Branch2 if the actor is above the destination. | ||
| 61376 | JR NC,Event_StartActor_Branch2 | |||
| 61378 | LD (IX+9),254 | Write 254 as the vertical delta. | ||
| 61382 | JR Event_StartActor_Continue | Jump to Event_StartActor_Continue. | ||
| Event_StartActor_Branch2 | 61384 | LD (IX+9),2 | Write 2 as the vertical delta. | |
| Event_StartActor_Continue | 61388 | LD DE,13 | IX+=0013. | |
| 61391 | ADD IX,DE | |||
| 61393 | JR Event_StartActor_Target | Jump to Event_StartActor_Target. | ||
| Prev: 61276 | Up: Map | Next: 61395 |