Prev: AFDD Up: Map Next: B023
AFFF: Display stars
display_stars AFFF LD HL,stars_countdown Counter from 7 to 0
B002 DEC (HL) Count down
B003 RET P Return
B004 LD (HL),$07 Reset counter to 7
B006 LD A,(status_flags) Test warp flag
B009 BIT 0,A ...
B00B JR Z,display_stars_0 If bit 0 is set then reset counter to 3
B00D LD (HL),$03 ...
display_stars_0 B00F LD C,$00 Set mask to undraw
B011 CALL display_star_frame Display star frame
B014 LD A,(star_frame) Get star frame
B017 ADD A,$02 Add 2
B019 CP $0C < 12 ?
B01B JR C,display_stars_1 Yes, skip ahead
B01D XOR A
display_stars_1 B01E LD (star_frame),A Set star frame to zero
B021 LD C,$FF Set mask to draw
Prev: AFDD Up: Map Next: B023