mirror of
https://github.com/robmcmullen/fujirun.git
synced 2024-12-28 23:30:22 +00:00
Added 6 digit score
This commit is contained in:
parent
152cac3ded
commit
6daefa7bfb
9
actors.s
9
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
|
||||
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user