F26D: Room Event : Spooky Hand.
Handler_SpookyHand |
F26D |
LD HL,SpookyHand |
|
F270 |
LD A,(HL) |
|
F271 |
OR A |
|
F272 |
JR Z,Handler_SpookyHand_Update |
|
F274 |
DEC (HL) |
|
F275 |
RET NZ |
|
F276 |
LD A,(Wally_RoomNo) |
|
F279 |
LD B,A |
|
F27A |
LD HL,SpookyHand_PosTable |
Handler_SpookyHand_0 |
F27D |
LD A,(HL) |
|
F27E |
INC HL |
|
F27F |
INC HL |
|
F280 |
INC HL |
|
F281 |
CP B |
|
F282 |
JR NZ,Handler_SpookyHand_0 |
|
F284 |
DEC HL |
|
F285 |
LD D,(HL) |
|
F286 |
DEC HL |
|
F287 |
LD E,(HL) |
|
F288 |
LD (BitmapX),DE |
|
F28C |
LD A,$AD |
|
F28E |
LD (SpookyHand_Frame),A |
|
F291 |
CALL Bitmap16Draw |
|
F294 |
RET |
Handler_SpookyHand_Update |
F295 |
LD HL,SpookyHand_f26c |
|
F298 |
DEC (HL) |
|
F299 |
RET NZ |
|
F29A |
LD (HL),$03 |
|
F29C |
LD A,(Wally_RoomNo) |
|
F29F |
LD HL,SpookyHand_PosTable |
Handler_SpookyHand_1 |
F2A2 |
CP (HL) |
|
F2A3 |
INC HL |
|
F2A4 |
INC HL |
|
F2A5 |
INC HL |
|
F2A6 |
JR NZ,Handler_SpookyHand_1 |
|
F2A8 |
DEC HL |
|
F2A9 |
LD D,(HL) |
|
F2AA |
DEC HL |
|
F2AB |
LD E,(HL) |
|
F2AC |
EX DE,HL |
|
F2AD |
LD (BitmapX),HL |
|
F2B0 |
LD A,(SpookyHand_Frame) |
|
F2B3 |
CALL Bitmap16Draw |
|
F2B6 |
INC A |
|
F2B7 |
CP $B3 |
|
F2B9 |
JR NZ,Handler_SpookyHand_2 |
|
F2BB |
LD A,$32 |
|
F2BD |
LD (SpookyHand),A |
|
F2C0 |
RET |
Handler_SpookyHand_2 |
F2C1 |
LD (SpookyHand_Frame),A |
|
F2C4 |
CALL Bitmap16Draw |
|
F2C7 |
LD B,$02 |
|
F2C9 |
CALL Wally_HitTest |
|
F2CC |
RET |