Prev: 53045 Up: Map Next: 53072
53064: Check Wall Vertical Reverse
Used by the routine at TestMoveDown.
Checks whether an object that is moving in the direction of heading two touches a wall in the cell containing a point. If it does, the depth is made positive and the object is pushed back by CheckWallVertical_PushBack.
Input
DE The horizontal position of the point
HL The vertical position of the point
IX The address of the object
Output
F The carry flag is set if the object hit a wall
Check the walls, then push the object back if it is touching one.
CheckWallVerticalReverse 53064 CALL CheckWallsHorizontalFirst Call CheckWallsHorizontalFirst.
53067 RET NC Return if the object is not touching a wall.
53068 NEG Make the depth positive, and jump to CheckWallVertical_PushBack.
53070 JR CheckWallVertical_PushBack
View the equivalent code in;
Prev: 53045 Up: Map Next: 53072