From 6daefa7bfbccbe4213ff26fafd2fe0866ae4fbf1 Mon Sep 17 00:00:00 2001 From: Rob McMullen Date: Fri, 21 Jul 2017 22:26:32 -0700 Subject: [PATCH] Added 6 digit score --- actors.s | 9 ++++++--- background.s | 6 +++--- maze.s | 2 +- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/actors.s b/actors.s index 0c3c135..ebbb072 100644 --- a/actors.s +++ b/actors.s @@ -4,6 +4,7 @@ level_speed_h .byte 2, 2, 2, 2, 2, 2 ;level_speed_h .byte 0, 0, 0, 0, 0, 0 player_score_row .byte 2, 7, 12, 17 player_score_l .byte 0, 0, 0, 0 +player_score_m .byte 0, 0, 0, 0 player_score_h .byte 0, 0, 0, 0 @@ -111,15 +112,17 @@ GAME_OVER = 255 ; ;# Scores ; -DOT_SCORE = 1 -PAINT_SCORE_PER_LINE = 10 -box_score .byte 0, $10, $20, $30, $40, $50, $60, $70, $80, $90 +DOT_SCORE = $05 +box_score .byte 0, $40, $80, $120, $160, $200, $240 add_score nop sed clc adc player_score_l,x sta player_score_l,x + lda player_score_m,x + adc #0 + sta player_score_m,x lda player_score_h,x adc #0 sta player_score_h,x diff --git a/background.s b/background.s index 4e4e75c..a4237ae 100644 --- a/background.s +++ b/background.s @@ -248,7 +248,7 @@ update_score nop sta c lda player_score_row,x sta r - lda #4 + lda #6 sta size jsr damage_string @@ -258,10 +258,10 @@ print_score nop ldy #MAZE_SCORE_COL lda player_score_h,x jsr print_hex + lda player_score_m,x + jsr print_hex lda player_score_l,x jsr print_hex - lda #'0' - sta (mazeaddr),y rts ; row = player_score_row[zp.current_actor] ; if actor_status[zp.current_actor] == GAME_OVER: diff --git a/maze.s b/maze.s index b50bd17..99a33bd 100644 --- a/maze.s +++ b/maze.s @@ -54,7 +54,7 @@ SCREEN_ROWS = 24 MAZE_LEFT_COL = 1 MAZE_RIGHT_COL = 31 MAZE_PANEL_COL = 33 -MAZE_SCORE_COL = 35 +MAZE_SCORE_COL = 34 SCREEN_COLS = 40 ;# Orbiter goes around the outside border, but not through the maze