aboutsummaryrefslogtreecommitdiff
path: root/sprite.h
diff options
context:
space:
mode:
Diffstat (limited to 'sprite.h')
-rw-r--r--sprite.h22
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