Prev: B52E Up: Map Next: B544
B538: Does this object take part in collisions?
Used by the routines at overlap_test_obj, dX_obj_loop, dY_obj_loop and dZ_obj_loop.
Bit 1 of byte 7 takes an object out of collision tests. Objects set it on themselves while they are being moved, and some keep it: Sabreman's upper half, the legs of the guards and the wizard, the cauldron bubbles and the finale sparks.
Input
IY the object
F on exit: Z if the slot is empty or bit 1 of byte 7 is set, NZ for an object things can collide with
is_object_not_ignored B538 LD A,(IY+$00) empty?
B53B AND A
B53C RET Z
B53D LD A,(IY+$07) or bit 1 of byte 7 set?
B540 CPL
B541 AND $02
B543 RET
Prev: B52E Up: Map Next: B544