aboutsummaryrefslogtreecommitdiff
path: root/components.h
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2023-05-05 09:25:39 +1000
committerquou <quou@disroot.org>2023-05-05 09:25:39 +1000
commit280552fa4750b5dac9243782f9c0a7e0b7eea6f8 (patch)
tree6385dc740cc965dad7dc628e8b10738724ec0a42 /components.h
parent0a083f5a9a747083bbc3a1f0689e76ac5fc3a3b9 (diff)
Add a basic enemy.
Diffstat (limited to 'components.h')
-rw-r--r--components.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/components.h b/components.h
index 66304df..d288ac5 100644
--- a/components.h
+++ b/components.h
@@ -29,13 +29,26 @@ typedef struct {
int vx, vy;
} CBullet;
+typedef struct {
+ int hp;
+ int backpedal;
+ int shoot_timer;
+} CEnemy;
+
+typedef struct {
+ int vx, vy;
+} CDebris;
+
typedef enum {
ctype_sprite = 1 << 0,
ctype_position = 1 << 1,
ctype_animated = 1 << 2,
ctype_bullet = 1 << 3,
ctype_player_bullet = 1 << 4,
- ctype_enemy_bullet = 1 << 5
+ ctype_enemy_bullet = 1 << 5,
+ ctype_enemy = 1 << 6,
+ ctype_skull = 1 << 7,
+ ctype_debris = 1 << 8
} CType;
#endif