cryocosm/src/chrome.h
2026-02-14 19:31:58 -05:00

22 lines
No EOL
359 B
C

char scoreStr[SCORE_LENGTH];
u32 lastScore;
static void drawScore(){
uintToStr(score, scoreStr, 1);
VDP_drawText(scoreStr, 1, 1);
}
void loadChrome(){
drawScore();
}
void updateChrome(){
score++;
if(score > 99999999) score = 0;
if(lastScore != score){
lastScore = score;
drawScore();
}
VDP_clearText(1, 26, 4);
VDP_drawText(debugStr, 1, 26);
}