diff --git a/Spacewar.c b/Spacewar.c index 8a754d6..13344e0 100644 --- a/Spacewar.c +++ b/Spacewar.c @@ -168,7 +168,10 @@ int main(int argc, char ** argv) if(keyboardState[SDL_SCANCODE_RETURN] == 1) { inputSelected = true; - } + } + + // Delay enough so that we run at 30 frames in the menu: + SDL_Delay(1000 / 30); } } else @@ -247,6 +250,9 @@ int main(int argc, char ** argv) { inputSelected = true; } + + // Delay enough so that we run at 30 frames in the menu: + SDL_Delay(1000 / 30); } // Load joystick