Routines |
Prev: DF45 | Up: Map | Next: DF90 |
Used by the routine at GameEntryPoint.
|
||||
George:
|
||||
MonsterDefaults | DF46 | LD IY,$CFD2 | IY=George_State. | |
DF4A | CALL SetMonsterDefaults | Call SetMonsterDefaults. | ||
DF4D | LD (IY+$09),$01 | Write 01 to George_X_Position (*IY+09). | ||
Lizzy:
|
||||
DF51 | LD IY,$D001 | IY=Lizzy_State. | ||
DF55 | CALL SetMonsterDefaults | Call SetMonsterDefaults. | ||
DF58 | LD (IY+$09),$0D | Write 0D to Lizzy_X_Position (*IY+09). | ||
Ralph:
|
||||
DF5C | LD IY,$D030 | IY=Ralph_State. | ||
DF60 | CALL SetMonsterDefaults | Call SetMonsterDefaults. | ||
DF63 | LD (IY+$09),$19 | Write 19 to Ralph_X_Position (*IY+09). | ||
DF67 | RET | Return. | ||
Sets common defaults on IY=Monster data.
|
||||
SetMonsterDefaults | DF68 | LD A,(IY+$00) | Return if the monster state (IY+00) is "No Monster". | |
DF6B | CP $FF | |||
DF6D | RET Z | |||
DF6E | XOR A | Write 00 to:
|
||
DF6F | LD (IY+$00),A | |||
DF72 | LD (IY+$02),A | |||
DF75 | LD (IY+$03),$01 | Write 01 (face left) to monster direction (IY+03). | ||
DF79 | LD (IY+$04),A | Write 00 to IY+04. | ||
DF7C | LD (IY+$05),$19 | Write 19 to IY+05. | ||
DF80 | LD (IY+$06),$03 | Write 03 to IY+06. | ||
DF84 | LD (IY+$07),$19 | Write 19 to IY+07. | ||
DF88 | LD (IY+$08),A | Write 00 to IY+08. | ||
DF8B | LD (IY+$0A),$12 | Write 12 to Y position (IY+0A). | ||
DF8F | RET | Return. |
Prev: DF45 | Up: Map | Next: DF90 |