From d61dcdcc384249ec7ea60c9cc18aab9df1f80577 Mon Sep 17 00:00:00 2001 From: quou Date: Thu, 4 May 2023 14:10:41 +1000 Subject: Add shooting. --- sprite.h | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 sprite.h (limited to 'sprite.h') 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 -- cgit v1.2.3-54-g00ecf