diff --git a/src/main.c b/src/main.c index 0cb7683..4f1262d 100644 --- a/src/main.c +++ b/src/main.c @@ -14,6 +14,19 @@ int main (int argc, char* args[]) } p = Pong_init(); + Pong_render(p); + + int start = false; + while (!start) { + printf("Press any key to start...\r"); + fflush(stdout); + while( SDL_PollEvent( &(p->e) ) != 0 ) + { + if( p->e.type == SDL_KEYDOWN) start = true; + } + } + putc('\n', stdout); + Pong_run(p); Pong_free(p);