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 /structs.h |
Diffstat (limited to 'structs.h')
-rw-r--r-- | structs.h | 18 |
1 files changed, 18 insertions, 0 deletions
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 <stdint.h> +#include <SDL2/SDL.h> + +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; |