diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 13:52:43 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 13:52:43 +0100 |
commit | fcec9d7598f0808d4081120a9cb2036bdea59737 (patch) | |
tree | 4963d2f791a4c3ba27d357ad38345094a8e65fc4 /game/player/PlayerScript.h | |
parent | 1413beea3b506b15b9f0080cec29c745d1ef88da (diff) |
make format
Diffstat (limited to 'game/player/PlayerScript.h')
-rw-r--r-- | game/player/PlayerScript.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/game/player/PlayerScript.h b/game/player/PlayerScript.h index 30f39c6..e7d860a 100644 --- a/game/player/PlayerScript.h +++ b/game/player/PlayerScript.h @@ -1,17 +1,18 @@ #pragma once +#include <chrono> #include <crepe/api/Event.h> #include <crepe/api/Script.h> -#include <chrono> class PlayerScript : public crepe::Script { public: void init(); void fixed_update(crepe::duration_t dt); - + private: bool on_collision(const crepe::CollisionEvent & ev); // bool on_key_up(const crepe::KeyReleaseEvent& ev); - void shoot(const crepe::vec2& location,float angle); + void shoot(const crepe::vec2 & location, float angle); + private: int prev_anim = 0; std::chrono::time_point<std::chrono::steady_clock> last_fired; |