From 9fde8254308f31ab14cd3a028c7ee86193555467 Mon Sep 17 00:00:00 2001 From: Jeremy Rand Date: Mon, 27 Jul 2020 14:25:22 -0400 Subject: [PATCH] Add some constants for the spider score amounts. --- BuGS/gameSpider.s | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/BuGS/gameSpider.s b/BuGS/gameSpider.s index 90a0252..f38c7c0 100644 --- a/BuGS/gameSpider.s +++ b/BuGS/gameSpider.s @@ -42,7 +42,11 @@ SPIDER_RHS_STARTING_SCREEN_OFFSET equ SCREEN_BYTES_PER_ROW*SPIDER_STARTING_SHI ; Every four frames, change the spider sprite SPIDER_SPRITE_REFRESH_COUNT equ 4 -SPIDER_SCORE_NUM_FRAMES equ 120 +SPIDER_SCORE_NUM_FRAMES equ 120 + +SPIDER_SCORE_300 equ 0 +SPIDER_SCORE_600 equ 4 +SPIDER_SCORE_900 equ 8 drawSpider entry @@ -741,8 +745,10 @@ shootSpider entry inc a sta spiderScreenOffset -; TODO - Increase the score and set the spiderScoreType to 0, 2 or 4 for +; TODO - Increase the score and set the spiderScoreType to 0, 4 or 8 for ; 300, 600 or 900 points depending on the distance from the player. + lda #SPIDER_SCORE_900 + sta spiderScoreType shootSpider_done anop rtl