diff --git a/source/main.cpp b/source/main.cpp index 156a22c..2edaf03 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -11,7 +11,7 @@ SDL_Renderer *renderer = NULL; SDL_Event *event; Texture *texture = nullptr; std::vector balls; -int test[6] = {1, 10, 100, 500, 1000, 10000}; +int test[7] = {1, 10, 100, 500, 1000, 10000, 100000}; bool shouldExit = false; Uint32 ticks = 0; @@ -196,6 +196,11 @@ void checkEvents() { initBalls(5); } + + if (event->key.keysym.sym == SDLK_7) + { + initBalls(6); + } } } }