Prev: 846B Up: Map Next: 84CB
84B1: Update frames and upload sprites
next_frame_upl_sprites 84B1 LD HL,frame_counter Update frame counter
84B4 INC (HL) ...
84B5 LD A,(HL) Get new value
84B6 AND $01 Every second frame ...
84B8 JR NZ,next_frame_upl_sprites_0 go directly to upload sprite data
84BA LD A,($700E) Else get type of sprite 1
84BD CP $01 Is it 1 (ship 2)?
84BF JR NZ,next_frame_upl_sprites_0 If not upload sprite data
84C1 LD HL,$7019 Get color of sprite 1
84C4 LD A,(HL) ...
84C5 XOR $04 Flip bit 4
84C7 LD (HL),A And set color back
next_frame_upl_sprites_0 84C8 JP upload_sprite_data Upload sprite data
Prev: 846B Up: Map Next: 84CB