diff options
| author | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-07 23:43:20 +0100 |
|---|---|---|
| committer | Aldrik Ramaekers <aldrik@amftech.nl> | 2022-12-07 23:43:20 +0100 |
| commit | 0c44af8f6c45e5bb957f38cc3e9784ca69524261 (patch) | |
| tree | 49d01710686e5818532552e1346129d7beda616b /include/players.h | |
work
Diffstat (limited to 'include/players.h')
| -rw-r--r-- | include/players.h | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/include/players.h b/include/players.h new file mode 100644 index 0000000..b74ce7e --- /dev/null +++ b/include/players.h @@ -0,0 +1,29 @@ +#ifndef INCLUDE_PLAYER +#define INCLUDE_PLAYER + +#include <projectbase/project_base.h> + +#include "map.h" +#include "objects.h" + +typedef struct t_bullet { + bool active; + float x; + float y; + float h; + float xacceleration; + float yacceleration; +} bullet; + +bullet bullets[500] = {0}; +int max_bullets = 500; + +float playerx = 3; +float playery = 3; + +void shoot(platform_window* window); +void draw_player(platform_window* window); +void draw_bullets(platform_window* window); +float get_player_size(platform_window* window); + +#endif
\ No newline at end of file |
