Prev: B736 Up: Map Next: B749
B73C: Guard walking east-west (types 150 and 151)
The body of a guard_ew guard (guard_ew). It walks two units a frame along X, turning round whenever the move leaves it blocked. Bit 0 of +13 is the direction, 1 for +X; the layout starts it at 0, heading -X. Its legs are the next record, and get its dX and X each frame; it never moves along Y, so their dY stays 0. Deadly to touch.
upd_150_151 B73C CALL adj_p7_m12 pixel offsets: 13 pixels above the legs
B73F BIT 0,(IX+$0D) dX = +2 or -2 from bit 0 of +13
B743 LD A,$02
B745 JR NZ,guard_ew_move
B747 NEG
Prev: B736 Up: Map Next: B749