22 lines
No EOL
359 B
C
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);
|
|
} |