Prev: C433 Up: Map Next: C5E8
C5BE: Enemy configuration for FOOTMAN crouched or stand-by
Used by the routine at C598.
C5BE POP DE
Set enemy configuration for FOOT MAN crouched
C5BF LD A,(IX+$11) Return if state change counter is not zero
C5C2 OR A
C5C3 RET NZ
C5C4 LD HL,$8318 Set HL to the address for the graphic data of crouched FOOT MAN
Set enemy configuration for FOOT MAN. Used to set the type: crouched or stand-by
C5C7 LD (IX+$10),$00 Stop FOOT MAN
C5CB LD (IX+$04),L Set the address for the static sprite graphic data
C5CE LD (IX+$05),H
C5D1 LD (IX+$0E),$02 Set width of sprite
C5D5 LD (IX+$12),$01 Set FOOT MAN type to crouched
C5D9 CALL $A51D Set A a pseudo-random number
C5DC AND $0F Set the pseudo-rendom number to be between $1F and $10
C5DE ADD A,$10
C5E0 LD (IX+$11),A Set this number to the state change counter
C5E3 SET 7,(IX+$09) Set the enemy type to select the address for the static graphic data
C5E7 RET
Prev: C433 Up: Map Next: C5E8