Skip to content

Commit e73bc9d

Browse files
committed
256 color Tilemap allow exit
1 parent 569524c commit e73bc9d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

  • Graphics/grit/256colorTilemap/source

Graphics/grit/256colorTilemap/source/main.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ int main(void) {
3434
// using swiWaitForVBlank here puts the DS into a low power loop
3535
while(1) {
3636
swiWaitForVBlank();
37+
scanKeys();
38+
int pressed = keysDown();
39+
if(pressed & KEY_START) break;
3740
}
3841

3942
return 0;

0 commit comments

Comments
 (0)