![]() |
Routines |
| Prev: 36917 | Up: Map | Next: 36950 |
|
Used by the routine at ExplodePlayerShip.
Turns an object into an explosion (type 21).
|
||||||||
| StartExplosion | 36925 | LD (IX+0),21 | Set the type of the object to 21. | |||||
| 36929 | LD (IX+19),80 | Set its first state byte to 80. | ||||||
| 36933 | LD (IX+20),5 | Set its second state byte to 5. | ||||||
| 36937 | LD A,(39884) | Fetch the second byte of the random seed. | ||||||
| 36940 | AND %00000011 | Keep two bits. | ||||||
| 36942 | RRCA | Rotate them into the top of the byte. | ||||||
| 36943 | RRCA | |||||||
| 36944 | LD (IX+21),A | Set the lifetime of the object. | ||||||
| 36947 | OR %00000001 | Set bit 0 and return. | ||||||
| 36949 | RET | Return. | ||||||
| Prev: 36917 | Up: Map | Next: 36950 |