pong/src/main.c

25 lines
343 B
C

#include <SDL.h>
#include <stdio.h>
#include "pong.h"
int main (int argc, char* args[])
{
Pong *p = NULL;
if (SDL_Init(SDL_INIT_VIDEO) < 0)
{
printf( "SDL could not initialize! SDL_Error: %s\n", SDL_GetError() );
return 1;
}
p = Pong_init();
Pong_run(p);
Pong_free(p);
SDL_Quit();
return 0;
}