Prev: 57157 Up: Map Next: 57232
57158: Set Monster Defaults
Used by the routine at GameEntryPoint.
George:
MonsterDefaults 57158 LD IY,53202 IY=George_State.
57162 CALL SetMonsterDefaults Call SetMonsterDefaults.
57165 LD (IY+9),1 Write 1 to George_X_Position (*IY+9).
Lizzy:
57169 LD IY,53249 IY=Lizzy_State.
57173 CALL SetMonsterDefaults Call SetMonsterDefaults.
57176 LD (IY+9),13 Write 13 to Lizzy_X_Position (*IY+9).
Ralph:
57180 LD IY,53296 IY=Ralph_State.
57184 CALL SetMonsterDefaults Call SetMonsterDefaults.
57187 LD (IY+9),25 Write 25 to Ralph_X_Position (*IY+9).
57191 RET Return.
Sets common defaults on IY=Monster data.
SetMonsterDefaults 57192 LD A,(IY+0) Return if the monster state (IY+0) is "No Monster".
57195 CP 255
57197 RET Z
57198 XOR A Write 0 to:
  • State (IY+0)
  • IY+2
57199 LD (IY+0),A
57202 LD (IY+2),A
57205 LD (IY+3),1 Write 1 (face left) to monster direction (IY+3).
57209 LD (IY+4),A Write 0 to IY+4.
57212 LD (IY+5),25 Write 25 to IY+5.
57216 LD (IY+6),3 Write 3 to IY+6.
57220 LD (IY+7),25 Write 25 to IY+7.
57224 LD (IY+8),A Write 0 to IY+8.
57227 LD (IY+10),18 Write 18 to Y position (IY+10).
57231 RET Return.
Prev: 57157 Up: Map Next: 57232