diff options
author | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-06 15:27:44 +0100 |
---|---|---|
committer | WBoerenkamps <wrj.boerenkamps@student.avans.nl> | 2025-01-06 15:27:44 +0100 |
commit | ceb41b7ae7e2734af954364b319fc0b6f2a86c2f (patch) | |
tree | f7544f5f68236be02eb96a7d381bce9ad41845dc /game/PlayerScript.cpp | |
parent | e9cba1baee564d835b8a3473a9cb146825f56732 (diff) | |
parent | 77d02bf2e2d5d04e8cacb3c783446541517e8e76 (diff) |
Merge branch 'master' of https://github.com/lonkaars/crepe into wouter/enemyAI
Diffstat (limited to 'game/PlayerScript.cpp')
-rw-r--r-- | game/PlayerScript.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/game/PlayerScript.cpp b/game/PlayerScript.cpp deleted file mode 100644 index 1c388f5..0000000 --- a/game/PlayerScript.cpp +++ /dev/null @@ -1,11 +0,0 @@ -#include "PlayerScript.h" - -#include <crepe/api/Rigidbody.h> - -using namespace crepe; -using namespace std; - -void PlayerScript::fixed_update(crepe::duration_t dt) { - Rigidbody & rb = this->get_components_by_name<Rigidbody>("player").front(); - if (this->get_key_state(Keycode::SPACE)) rb.add_force_linear(vec2(0, -10)); -} |