diff options
author | banana <delgadillo.tyler@gmail.com> | 2024-03-22 13:46:36 -0700 |
---|---|---|
committer | banana <delgadillo.tyler@gmail.com> | 2024-03-22 13:46:36 -0700 |
commit | ad22993557296b02bc0c947cb3bb6247fac8f47f (patch) | |
tree | 2c83ab589acab8a5074583d625d54ec44677e5d0 /main.c |
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; +} |