Prev: 26459 Up: Map Next: 26484
26464: Increase score when alien hit
Bump the player's score when an alien is hit. Red are worth 10, green are worth 20, yellow are worth 30
Used by the routine at alien_hit.
increase_score 26464 LD A,(_HIT_ALIEN_ROW) Pick up row of hit alien
26467 LD HL,_ROW_SCORES_TABLE Calculate offset into this table
26470 CALL add_a_to_hl_2
26473 LD A,(HL) That's the value to add to score
26474 LD HL,(_CURRENT_SCORE) Increment score
26477 CALL add_a_to_hl_2
26480 LD (_CURRENT_SCORE),HL
26483 RET
Prev: 26459 Up: Map Next: 26484