From 1e873ba5c1ca388e91574fe4f151ffcb59279b19 Mon Sep 17 00:00:00 2001 From: Jason Bou-Samra <154414066+bou-samra@users.noreply.github.com> Date: Mon, 28 Oct 2024 20:13:40 +1100 Subject: [PATCH] Update hiscore.c --- src/hiscore.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/hiscore.c b/src/hiscore.c index 5751217..15ddc92 100644 --- a/src/hiscore.c +++ b/src/hiscore.c @@ -20,8 +20,10 @@ int score; // current score char level_r = 0x1E; // game level (remaining) char level_c = 0x00; // game level (current) int total = 0x00; // smashed tiles -int hscores1[8] = {1000, 780, 600, 500, 400, 300, 200, 100}; +int total_c = 0x00; // total count + +int hscores1[8] = {1000, 780, 600, 500, 400, 300, 200, 100}; char hscores[8][7+1] = {{"......."}, {"......."}, {"......."}, {"......."}, {"......."}, {"......."}, {"......."}, {"......."}}; // high score panel - scores char names[8][7+1] = {{"HULK "}, {"EARTH "}, {"BUSH "}, {"AXE "}, {"PERFECT"}, {"POWERS "}, {"TUGBOAT"}, {"DINO "}}; // high score panel - names char name_temp[7+1] = " "; @@ -59,7 +61,7 @@ int insert_score(int new) { } } for (int j = 0; j < 8; j++){ - its(hscores1[j], str); // convert high scores to ASCII code + its(hscores1[j], str, 0x2e); // convert high scores to ASCII code for (int k = 0; k < 8; k++){ hscores[j][k] = str[k]; // store in high score ASCII array } @@ -177,7 +179,6 @@ int end_game(void) { insert_score(score); // else display name entry dialog } } -// check_key(); reset(); return 0; }