aboutsummaryrefslogtreecommitdiff
path: root/components.h
diff options
context:
space:
mode:
Diffstat (limited to 'components.h')
-rw-r--r--components.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/components.h b/components.h
index cdd7c46..84cfc54 100644
--- a/components.h
+++ b/components.h
@@ -1,6 +1,7 @@
#ifndef components_h
#define components_h
+#include "animation.h"
#include "asset.h"
#include "rect.h"
@@ -13,9 +14,17 @@ typedef struct {
Rectangle rect;
} CSprite;
+typedef struct {
+ Animation_ID id;
+
+ int frame;
+ int timer;
+} CAnimated;
+
typedef enum {
ctype_sprite = 1 << 0,
- ctype_position = 1 << 1
+ ctype_position = 1 << 1,
+ ctype_animated = 1 << 2
} CType;
#endif