hasta 100.000 pelotas

This commit is contained in:
2024-08-21 14:10:40 +02:00
parent 47c0aec24a
commit 33e1c82396

View File

@@ -11,7 +11,7 @@ SDL_Renderer *renderer = NULL;
SDL_Event *event; SDL_Event *event;
Texture *texture = nullptr; Texture *texture = nullptr;
std::vector<Ball *> balls; std::vector<Ball *> balls;
int test[6] = {1, 10, 100, 500, 1000, 10000}; int test[7] = {1, 10, 100, 500, 1000, 10000, 100000};
bool shouldExit = false; bool shouldExit = false;
Uint32 ticks = 0; Uint32 ticks = 0;
@@ -196,6 +196,11 @@ void checkEvents()
{ {
initBalls(5); initBalls(5);
} }
if (event->key.keysym.sym == SDLK_7)
{
initBalls(6);
}
} }
} }
} }