Prev: B80F Up: Map Next: B856
B83F: Handle Stationary Fire
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.
Input
IX Address of the fire object
Flicker the fire on every other pass.
HandleStationaryFire B83F CALL SetPixelAdjustments_Ball Set the pixel adjustments of a ball.
B842 LD A,($5BBC) Fetch the fire seed from FireSeed.
B845 AND %00000001 Test the lowest bit.
B847 RET Z Return on every other pass.
B848 LD A,($5BA5) Fetch the second random seed from RandomSeed2.
B84B AND %01000000 Keep the bit that flips the sprite.
B84D XOR (IX+$07) Combine it with the flags of the object.
B850 LD (IX+$07),A Store the flags, which makes the fire flip at random.
B853 CALL ToggleGraphic Toggle the graphic of the fire between its two frames.
Prev: B80F Up: Map Next: B856