ReC98/th04/main/score[bss].asm

20 lines
600 B
NASM
Raw Normal View History

; Scores and high scores are exclusively stored in little-endian BCD format
; internally. Points are added via adding regular integers to [score_delta],
; which is then taken "times 10" ([score_delta] += 1 → 10 more on-screen
; points).
public _continues_used, _score, _hiscore
public _score_delta, _score_delta_frame
label _continues_used byte
_score db SCORE_DIGITS dup(?)
_hiscore db SCORE_DIGITS dup(?)
if GAME eq 4
public _score_unused
_score_unused db ?
endif
_score_delta dd ?
; Amount of points transferred from [score_delta] to [score_lebcd] this frame.
_score_delta_frame dd ?