From 7f7c5c56dce30d47c32fb57fad6d839d0990b054 Mon Sep 17 00:00:00 2001 From: WBoerenkamps Date: Wed, 8 Jan 2025 10:08:03 +0100 Subject: enemy spawn working + enemy shooting --- game/player/PlayerBulletScript.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 game/player/PlayerBulletScript.h (limited to 'game/player/PlayerBulletScript.h') diff --git a/game/player/PlayerBulletScript.h b/game/player/PlayerBulletScript.h new file mode 100644 index 0000000..559b815 --- /dev/null +++ b/game/player/PlayerBulletScript.h @@ -0,0 +1,11 @@ +#pragma once +#include +#include + +class PlayerBulletScript : 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(); +}; -- cgit v1.2.3