Prev: BDF8 Up: Map Next: BF1B
BF0D: Clear bit 5 of every object's flags
Used by the routine at OBJECT_DONE.
Bit 5 of +7 asks RENDER_DYNAMIC_OBJECTS to copy the object's part of the buffer to the screen. The main loop (OBJECT_DONE) calls this after drawing a new room and copying the whole buffer to the screen at once, so that no object's part is copied again.
CLEAR_COPY_BITS BF0D LD B,$36 all 54 records, from the flags (+7) of the first
BF0F LD DE,$0020
BF12 LD HL,PLAYER_FLAGS
CLEAR_COPY_BITS_0 BF15 RES 5,(HL) clear bit 5 of each
BF17 ADD HL,DE
BF18 DJNZ CLEAR_COPY_BITS_0
BF1A RET
Prev: BDF8 Up: Map Next: BF1B