rotagon/main.c

37 lines
448 B
C
Raw Normal View History

2015-01-01 03:04:34 +00:00
/*
** main.c - Rotagon
**
** 2014 - Frank Villaro-Dixon <Frank@Villaro-Dixon.eu>
*/
#include <stdio.h>
#include <stdlib.h>
2015-01-01 03:34:12 +00:00
#include "SDL/SDL.h"
2015-01-01 03:04:34 +00:00
#include "game.h"
#include "sdl.h"
int
main(int argc, char *argv[])
{
struct s_game ga;
init_game(&ga);
init_SDL(&ga);
while(1) {
2015-01-01 03:34:12 +00:00
SDL_FillRect(ga.screen, NULL, 0);
get_keys(&ga);
2015-01-01 03:04:34 +00:00
draw_game(&ga);
SDL_Flip(ga.screen);
//get key
//do calcs
//collisions
}
return EXIT_SUCCESS;
}