diff options
author | quou <quou@disroot.org> | 2023-05-05 13:44:23 +1000 |
---|---|---|
committer | quou <quou@disroot.org> | 2023-05-05 13:44:23 +1000 |
commit | fb104368dd33b66e0575dcc0327cbae7046a4e1e (patch) | |
tree | 67a1a66182aa8417b8fbb431576528c28f4a5ab8 /components.h | |
parent | 280552fa4750b5dac9243782f9c0a7e0b7eea6f8 (diff) |
Add killing enemies.
Diffstat (limited to 'components.h')
-rw-r--r-- | components.h | 25 |
1 files changed, 16 insertions, 9 deletions
diff --git a/components.h b/components.h index d288ac5..f23b35e 100644 --- a/components.h +++ b/components.h @@ -39,16 +39,23 @@ typedef struct { int vx, vy; } CDebris; +typedef struct { + int x, y, w, h; +} CCollider; + 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 = 1 << 6, - ctype_skull = 1 << 7, - ctype_debris = 1 << 8 + 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 = 1 << 6, + ctype_skull = 1 << 7, + ctype_debris = 1 << 8, + ctype_collider = 1 << 9, + ctype_player = 1 << 10, + ctype_destroy_on_anim_done = 1 << 11 } CType; #endif |