Skip to content

Commit 956254e

Browse files
committed
Restart the game in Game Over state on any key down
1 parent 73d71f9 commit 956254e

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

game.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,9 +672,7 @@ void game_keydown(int key)
672672
break;
673673

674674
case STATE_GAMEOVER: {
675-
if (key == KEY_ACCEPT || key == KEY_RESTART) {
676-
game_restart(game.width, game.height);
677-
}
675+
game_restart(game.width, game.height);
678676
}
679677
break;
680678

game.wasm

-10.3 KB
Binary file not shown.

0 commit comments

Comments
 (0)