Prev: B3EA Up: Map Next: B403
B3F2: Give a laser a random colour
Used by the routine at update_shot.
Bright cyan, yellow or white, or bright magenta in place of a fourth, from the random number at random_a.
random_beam_colour B3F2 LD A,(random_a) $45-$47, or $43
B3F5 AND $03
B3F7 ADD A,$45
B3F9 CP $48
B3FB JR NZ,random_beam_colour_0
B3FD LD A,$43
random_beam_colour_0 B3FF LD (IX+$0D),A the record's +D
B402 RET
Prev: B3EA Up: Map Next: B403