Contact Sam Cruise Routines
Prev: 60293 Up: Map Next: 60334
60315: Make a character move up
Used by the routines at 60626, 62892 and 62976. Attempts to move a character in the following ways, in the given order, depending on the directions that are available at the character's current location:
Move Condition
Up There is a step going up in the direction the character is facing
Turn round There is a step going up in the other direction
Forwards There is no step going up
Down The character can only step down from his current location
H Character number (215-230)
60315 LD DE,41496 Point DE at the direction indicator table at 41496
60318 JR 60323
This entry point is used by the routines at 60631, 62892 and 62976 to attempt to move a character in the following ways, in the given order, depending on the directions that are available at the character's current location:
Move Condition
Down There is a step going down in the direction the character is facing
Turn round There is a step going down in the other direction
Forwards There is no step going down
Up The character can only step up from his current location
60320 LD DE,42008 Point DE at the direction indicator table at 42008
60323 CALL 60293 Make the character stand up if he's lying down
60326 RET C Return if the character was lying down
60327 BIT 7,(HL) Is the character facing left?
60329 JR Z,60368 Jump if so
60331 INC D DE=41752 or 42264
60332 JR 60368 Move the character and update the SRB accordingly
Prev: 60293 Up: Map Next: 60334