Prev: AC49 Up: Map Next: AC71
AC4A: Check to see if Wally is standing on solid ground.
Used by the routines at Wally_Handler and Demo.
Input
Output
Wally_CheckFall AC4A LD A,(Wally_ATTR)
AC4D CP $42 Bright Red
AC4F JR Z,Wally_CheckAttr_Solid
AC51 CP $45 Bright Cyan
AC53 JR NZ,Wally_CheckFall_0
Wally_CheckAttr_Solid AC55 LD A,(Wally_Y) See if Wally is aligned with a character cell.
AC58 AND $07
AC5A JR NZ,Wally_CheckFall_0 If not then let him fall regardless of colour.
AC5C XOR A
AC5D LD (Wally_Falling),A
AC60 RET
Wally_CheckFall_0 AC61 LD A,(Wally_Frame) Drop wally by 4 pixels.
AC64 CALL Wally_Erase
AC67 LD A,H
AC68 ADD A,$04
AC6A LD (Wally_Y),A
AC6D CALL Wally_Draw
AC70 RET
Prev: AC49 Up: Map Next: AC71