Prev: CC30 Up: Map Next: CC3E
CC38: Shorten dZ against the other objects
Used by the routine at adj_for_out_of_bounds.
adj_dX_for_obj_intersect for Z, done before X and Y so it tests the object where it stands: an object has to overlap in X and in Y (with no horizontal move yet) to be above or below it. Stopping sets bit 2 of +$0C, whether the move was up or down.
Input
IX the moving object
H dZ
C dX, zero here
L dY, zero here
H on exit, dZ shortened
adj_dZ_for_obj_intersect CC38 LD IY,$5C08 IY = the first record; forty of them
CC3C LD B,$28
Prev: CC30 Up: Map Next: CC3E