From ad22993557296b02bc0c947cb3bb6247fac8f47f Mon Sep 17 00:00:00 2001 From: banana Date: Fri, 22 Mar 2024 13:46:36 -0700 Subject: Initial commit --- main.c | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 main.c (limited to 'main.c') diff --git a/main.c b/main.c new file mode 100644 index 0000000..1483f89 --- /dev/null +++ b/main.c @@ -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; +} -- cgit v1.2.3