![]() |
Routines |
| Prev: 54998 | Up: Map | Next: 55079 |
|
The routine for objects of type 140 to 143, the fragments that fly out of a monster that has been destroyed. A fragment moves in a straight line, and turns into a burst when it hits something.
|
||||
| UpdateFragment | 55050 | RES 1,(IX+7) | Clear the flag that shows that the fragment has been drawn. | |
| 55054 | LD A,(IX+5) | Set the velocity of the fragment from its speed and direction. | ||
| 55057 | CALL SetVelocityFromSpeed | |||
| 55060 | CALL TestMove | Check whether the scenery blocks the move. | ||
| 55063 | CALL MoveObject | Move the fragment. | ||
| 55066 | CALL NextSpriteNumber | Change the sprite of the fragment. | ||
| 55069 | BIT 0,(IX+7) | Return if the fragment has not hit anything. | ||
| 55073 | RET Z | |||
| 55074 | LD (IX+0),12 | Turn the fragment into a burst and return. | ||
| 55078 | RET | |||
| Prev: 54998 | Up: Map | Next: 55079 |