diff options
| author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 10:08:03 +0100 |
|---|---|---|
| committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-08 10:08:03 +0100 |
| commit | 7f7c5c56dce30d47c32fb57fad6d839d0990b054 (patch) | |
| tree | eebc8d3f4c332d969f4a66a566edd844bd43387c /game/player/PlayerScript.h | |
| parent | ceb41b7ae7e2734af954364b319fc0b6f2a86c2f (diff) | |
enemy spawn working + enemy shooting
Diffstat (limited to 'game/player/PlayerScript.h')
| -rw-r--r-- | game/player/PlayerScript.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/game/player/PlayerScript.h b/game/player/PlayerScript.h index d8eb098..cdb466f 100644 --- a/game/player/PlayerScript.h +++ b/game/player/PlayerScript.h @@ -7,10 +7,11 @@ 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); private: int prev_anim = 0; }; |