Routines |
Prev: F401 | Up: Map | Next: F43C |
|
||||
F409 | LD A,$06 | Touching a moving object drops endurance by 6. | ||
F40B | LD ($F26E),A | |||
F40E | LD IX,$F401 | Point IX at the movement table. (F401) | ||
F412 | LD B,$02 | 2 moving objects to draw. | ||
F414 | PUSH BC | Store BC. | ||
F415 | LD BC,$F3FD | Point BC at the boundary table. | ||
F418 | CALL $EF35 | Update the moving object. | ||
F41B | LD A,E | Get the x co-ordinate. | ||
F41C | CP $FE | Is it FE? | ||
F41E | JR NZ,$F430 | Jump forward if it isn't. | ||
The toast is off-screen, so redraw it back at the other end.
|
||||
F420 | LD (IX-$01),$FC | Set the y difference as -4. | ||
F424 | LD (IX-$02),$02 | Set the x difference at +2. | ||
F428 | LD (IX-$03),$80 | Set the y co-ordinate as 80. | ||
F42C | LD (IX-$04),$00 | Set the x co-ordinate as 00. | ||
Now draw the toast.
|
||||
F430 | LD A,$32 | Use the ID of the toast. (89B8) | ||
F432 | CALL $A8A0 | Draw the object. | ||
F435 | CALL $E329 | Check for collision detection. | ||
F438 | POP BC | Restore BC. | ||
F439 | DJNZ $F414 | Loop while there are still objects to update. | ||
F43B | RET | Otherwise return. |
Prev: F401 | Up: Map | Next: F43C |