![]() |
Routines |
| Prev: C5FD | Up: Map | Next: C60C |
|
Used by the routine at ghost_new_direction.
A ghost has two views, chosen by bit 1 of its type, and each can be mirrored (bit 6 of +$07); together they give four directions. Whichever of dx and dy is larger in size decides: mostly along x, the view is mirrored; mostly along y, it is not. The sign then picks the view.
|
||||||||
| calc_ghost_sprite | C603 | LD A,(IX+$09) | the size of dx | |||||
| C606 | AND A | |||||||
| C607 | JP P,ghost_abs_dy | |||||||
| C60A | NEG | |||||||
| Prev: C5FD | Up: Map | Next: C60C |