diff options
Diffstat (limited to 'game/enemy/EnemyBulletScript.h')
-rw-r--r-- | game/enemy/EnemyBulletScript.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/game/enemy/EnemyBulletScript.h b/game/enemy/EnemyBulletScript.h new file mode 100644 index 0000000..822387f --- /dev/null +++ b/game/enemy/EnemyBulletScript.h @@ -0,0 +1,11 @@ +#pragma once +#include <crepe/api/BehaviorScript.h> +#include <crepe/api/Script.h> + +class EnemyBulletScript : public crepe::Script{ + public: + void init() override; + void fixed_update(crepe::duration_t dt) override; + bool on_collide(const crepe::CollisionEvent& e); + void despawn_bullet(); +}; |