aboutsummaryrefslogtreecommitdiff
path: root/game/enemy/EnemyBulletScript.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 14:57:09 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 14:57:09 +0100
commit714c8798dd0998ea15b1ba697962a97c586457fe (patch)
tree86d36b17a71845cd4b5d16a0e9abd11df0d55c03 /game/enemy/EnemyBulletScript.h
parentfbd7c84e13381922bf327e20c1abc65337142445 (diff)
parent0de6692dcb029540f4502c5a2f1a0c6634f7b61f (diff)
Merge remote-tracking branch 'origin/wouter/enemyAI' into niels/game
Diffstat (limited to 'game/enemy/EnemyBulletScript.h')
-rw-r--r--game/enemy/EnemyBulletScript.h11
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..7dab751
--- /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();
+};