Prev: CBEF Up: Map Next: CC28
CBFE: Shorten dY: does the move hit it?
Used by the routine at dY_obj_shorten.
As dX_obj_hit_test, for Y: stopped in Y is bit 1 of +$0C, harm passes the same way, and a pushable obstacle takes on the mover's dY.
dY_obj_hit_test CBFE CALL do_objs_intersect_on_y no overlap in Y: next object
CC01 JR NC,dY_obj_next
CC03 SET 1,(IX+$0C) stopped in Y
CC07 LD A,(IX+$0D) mover's bit 7 becomes the obstacle's bit 6
CC0A RRCA
CC0B AND $40
CC0D OR (IY+$0D)
CC10 LD (IY+$0D),A
CC13 RLCA obstacle's bit 5 becomes the mover's bit 6
CC14 AND $40
CC16 OR (IX+$0D)
CC19 LD (IX+$0D),A
CC1C BIT 2,(IY+$07) a pushable obstacle takes on our dY
CC20 JR Z,dY_obj_shorten
CC22 LD A,(IX+$0A)
CC25 LD (IY+$0A),A
Prev: CBEF Up: Map Next: CC28