From ad22993557296b02bc0c947cb3bb6247fac8f47f Mon Sep 17 00:00:00 2001 From: banana Date: Fri, 22 Mar 2024 13:46:36 -0700 Subject: Initial commit --- structs.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 structs.h (limited to 'structs.h') diff --git a/structs.h b/structs.h new file mode 100644 index 0000000..4dc6207 --- /dev/null +++ b/structs.h @@ -0,0 +1,18 @@ +#include +#include + +typedef struct { + SDL_Window* window; + SDL_Renderer* renderer; + uint8_t input; + + void (*update)(void); + void (*render)(void); +} App; + +typedef struct { + SDL_Rect rect; + int dx; + int dy; + float timer; +} game_object; -- cgit v1.2.3