summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
authorbanana <delgadillo.tyler@gmail.com>2024-03-22 13:46:36 -0700
committerbanana <delgadillo.tyler@gmail.com>2024-03-22 13:46:36 -0700
commitad22993557296b02bc0c947cb3bb6247fac8f47f (patch)
tree2c83ab589acab8a5074583d625d54ec44677e5d0 /main.c
Initial commitHEADmaster
Diffstat (limited to 'main.c')
-rw-r--r--main.c25
1 files changed, 25 insertions, 0 deletions
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;
+}