← B0AE Advance the 15-step golden-twinkle timer Map B0DF → Apply the prize on a removed prize glyph
B0BF: Maybe start the golden brick's idle twinkle
Starts the golden brick's idle twinkle on a random gate.
check_golden_twinkle B0BF LD HL,(scan_cell_ptr) Only a golden brick that stands twinkles.
B0C2 LD A,(HL)
B0C3 CP $59
B0C5 RET NZ
B0C6 LD A,(golden_flash_timer) Skip while a twinkle already plays.
B0C9 OR A
B0CA RET NZ
B0CB CALL next_random Random gate: about one scan in 64
B0CE AND $3F
B0D0 RET NZ
B0D1 LD A,$01 Start the 15-step flash timer.
B0D3 LD (golden_flash_timer),A
B0D6 LD HL,(scan_entry_ptr) Queue the twinkle's class in this slot's brick state map entry, from sub-frame zero.
B0D9 LD (HL),$12
B0DB INC HL
B0DC LD (HL),$00
B0DE RET
← B0AE Advance the 15-step golden-twinkle timer Map B0DF → Apply the prize on a removed prize glyph
Fork me on GitHub