![]() |
Routines |
| Prev: 42845 | Up: Map | Next: 42883 |
|
If the actor's explode flag is set, switch to sprite 92 and pick a fragment colour.
|
||||||||
|
Switch to sprite 92 when the explode flag is set.
|
||||||||
| StartExplosion | 42854 | BIT 0,(IX+16) | Return if bit 0 of *IX+16 is not set. | |||||
| 42858 | RET Z | |||||||
|
""Sparkle Burst: Frame 1"".
|
||||||||
| StartExplosion_SetSprite | 42859 | LD (IX+0),92 | *IX+0=92. | |||||
| 42863 | CALL InitialiseExplosion_4 | Call InitialiseExplosion_4. | ||||||
|
Pick a fragment colour from RandomNumber.
|
||||||||
| StartExplosion_PickOffset | 42866 | LD A,(24128) | Fetch RandomNumber. | |||||
| 42869 | AND %00000011 | Keep only bits 0-1. | ||||||
| 42871 | LD C,A | Create an offset in BC. | ||||||
| 42872 | LD B,0 | |||||||
| 42874 | LD HL,42898 | HL=FragmentColours+offset. | ||||||
| 42877 | ADD HL,BC | |||||||
| 42878 | LD A,(HL) | Fetch the colour. | ||||||
| 42879 | LD (IX+7),A | Write it to the actor colour. | ||||||
| 42882 | RET | Return. | ||||||
|
View the equivalent code in;
|
||||||||
| Prev: 42845 | Up: Map | Next: 42883 |