diff options
Diffstat (limited to 'main.c')
-rw-r--r-- | main.c | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -0,0 +1,25 @@ +#include "./structs.h" +#include "./constants.h" +#include "./input.h" +#include "./initialize.h" +#include "./tennis.h" +#include "./title.h" + +App app; + +int main(int argc, char* argv[]) { + + memset(&app, 0, sizeof(app)); + + initialize_window(&app); + + init_pong(); + + while(app.input ^ INPUT_RESET) { + process_input(); + app.update(); + app.render(); + } + destroy_window(&app); + return 0; +} |