init
This commit is contained in:
parent
ab73e04b32
commit
0b905f2690
26 changed files with 1210 additions and 0 deletions
22
src/chrome.h
Normal file
22
src/chrome.h
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
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);
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue