![]() |
Routines |
| Prev: 47119 | Up: Map | Next: 47190 |
|
Handles a fire that stays where it is, flickering by changing frame and mirroring itself on every other pass. No fire like this appears in the game.
|
||||||||
|
Flicker the fire on every other pass.
|
||||||||
| HandleStationaryFire | 47167 | CALL SetPixelAdjustments_Ball | Set the pixel adjustments of a ball. | |||||
| 47170 | LD A,(23484) | Fetch the fire seed from FireSeed. | ||||||
| 47173 | AND %00000001 | Test the lowest bit. | ||||||
| 47175 | RET Z | Return on every other pass. | ||||||
| 47176 | LD A,(23461) | Fetch the second random seed from RandomSeed2. | ||||||
| 47179 | AND %01000000 | Keep the bit that flips the sprite. | ||||||
| 47181 | XOR (IX+7) | Combine it with the flags of the object. | ||||||
| 47184 | LD (IX+7),A | Store the flags, which makes the fire flip at random. | ||||||
| 47187 | CALL ToggleGraphic | Toggle the graphic of the fire between its two frames. | ||||||
| Prev: 47119 | Up: Map | Next: 47190 |