add highscore display

This commit is contained in:
2024-04-19 11:38:32 +02:00
parent 7933aa46ae
commit b400431607
12 changed files with 134 additions and 16 deletions

View File

@ -10,6 +10,8 @@
#include "sound.h"
bool mutedFlag = true;
static uint8_t buttonsMoveLeftPressed() {
static uint8_t last = 0;
uint8_t current = (P2IN & BIT4);
@ -49,7 +51,6 @@ static uint8_t buttonsMoveDownPressed() {
void buttonsExec(void *handle) {
static uint32_t unmuteTimestamp;
uint32_t currentTimestamp = getSeconds();
static bool mutedFlag = true;
if (! stoneIsValid()) {
@ -107,3 +108,7 @@ void buttonsInit() {
schAdd(buttonsExec, NULL, 0, 25);
}
bool isGameActive() {
return ! mutedFlag;
}