Routines |
Prev: 54393 | Up: Map | Next: 54450 |
Used by the routine at 54393.
|
||||
After Maroc places the four elemental symbols on the floor circle (see image) in room 81, a portal door appears in the middle of the screen.
This routine uses the collision detection routine at 57293 to check if Maroc has gone through the portal doorway which takes him to the High Temple of Chaos and a confrontation with Avelach.
Interestingly, Maroc doesn't actually have to create the portal door to get to the High Temple of Chaos - there's actually a shortcut...
|
||||
54429 | LD A,(60087) | Get room number | ||
54432 | CP 81 | Is it room 81? | ||
54434 | JR NZ,54450 | If not, skip the following check routine | ||
54436 | LD C,136 | Collision type to check = 136 - Maroc touching portal door | ||
54438 | CALL 57293 | Collision check routine - returns 0 (no collision) or 1 (collision found) in the A register | ||
54441 | CP 0 | Collision with portal door? | ||
54443 | JR Z,54450 | If not, skip to the next routine | ||
54445 | LD A,82 | Set the room number to 82, in the High Temple of Chaos | ||
54447 | LD (60080),A |
Prev: 54393 | Up: Map | Next: 54450 |