Commit 97471039 authored by Valentin Bartschies's avatar Valentin Bartschies
Browse files

Reset game when switching between menu and game

parent 17df2e4f
......@@ -35,6 +35,7 @@ int main() {
if (IsKeyPressed(KEY_ENTER) && state == MENU) {
state = GAME;
initGame();
} // Enter to start the game when in menu
if (IsKeyPressed(KEY_BACKSPACE) && state == GAME) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment