diff options
author | quou <quou@disroot.org> | 2023-05-04 14:10:41 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-04 14:10:50 +1000 |
commit | d61dcdcc384249ec7ea60c9cc18aab9df1f80577 (patch) | |
tree | 563e985e6a1f480461177f2c341d70ce5dd1498d /sprite.h | |
parent | c4ac81cffcf925963acb0c02584ab22626427a73 (diff) |
Add shooting.
Diffstat (limited to 'sprite.h')
-rw-r--r-- | sprite.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/sprite.h b/sprite.h new file mode 100644 index 0000000..a520b99 --- /dev/null +++ b/sprite.h @@ -0,0 +1,22 @@ +#ifndef sprite_h +#define sprite_h + +#include "asset.h" +#include "components.h" +#include "rect.h" + +typedef enum { + sprite_player_bullet_left = 0, + sprite_player_bullet_right, + sprite_player_bullet_up, + sprite_player_bullet_down +} Sprite_ID; + +typedef struct { + Asset_ID bitmap; + Rectangle rect; +} Sprite; + +void init_csprite(CSprite* sprite, Sprite_ID id); + +#endif |