diff options
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; |