Prev: D6A4 Up: Map Next: D6C7
D6B0: Initialize the appearance of a warlock or a demon
Follows previous routine for demon at D6A4, or jump from end of warlock initialization at D6A1.
D6B0 LD A,%10000101 Set:
  • bit 0 - creature is on-screen
  • bit 2 - creature graphic will need erasing
  • bit 7 - indicates trigger for warlock/demon appearance after the materialization routine has finished
D6B2 LD ($EB4E),A Store as creature's properties byte
D6B5 LD A,$01
D6B7 LD ($EB50),A Graphic frame number offset (= no offset - start at animation frame 1)
D6BA LD ($EAF2),A Set the warlock/demon appearance flag to 1 (to stop any more being generated)
D6BD LD A,$5B Graphic number for start of materialization effect (offset for graphics address pointer 9877)
D6BF CALL $E0C2 Set up graphics
If Maroc enters a room containing a demon, Maroc's freeze spell is negated. This is possibly to make the High Temple of Chaos slightly more challenging when navigating the final few rooms.
The materialization of a warlock in a room also negates Maroc's freeze spell.
D6C2 LD A,$00 Set the FREEZE spell timer to zero
D6C4 LD ($EC9C),A
Prev: D6A4 Up: Map Next: D6C7