Prev: 57098 Up: Map Next: 57207
57164: GET_PLAYER_FIRING_POSITION
Used by the routine at PLAYER_MOVEMENT.
GET_PLAYER_FIRING_POSITION 57164 LD IX,60093 Load IX with player Y fire position
57168 LD B,16
57170 LD DE,3
GET_PLAYER_FIRING_POSITION_0 57173 LD A,(IX+2)
57176 CP 255
57178 JP Z,GET_PLAYER_FIRING_POSITION_1
57181 ADD IX,DE Add 3 to IX
57183 DJNZ GET_PLAYER_FIRING_POSITION_0 Loop 16 times
57185 RET
GET_PLAYER_FIRING_POSITION_1 57186 LD BC,(59649) Load BC with PLAYER_X_COORD and PLAYER_Y_COORD
57190 INC B Point B at player's Y coord + 1
57191 LD (IX+0),B Save the position in the vertical middle player to 60093 (4 pixels below top of player)
57194 LD A,C
57195 ADD A,4
57197 LD (IX+1),A Save the position 4 in front of the player to 60094
57200 LD (IX+2),0 Save 0 to 60095
57204 JP L56280
Prev: 57098 Up: Map Next: 57207