diff options
author | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 09:43:53 +0100 |
---|---|---|
committer | Loek Le Blansch <loek@pipeframe.xyz> | 2025-01-07 09:43:53 +0100 |
commit | 743cdd5b2fe175605352c337396c3d70dac66247 (patch) | |
tree | 538c9713403f8746d629448190dc69305a15e82a /game/prefab/PlayerScript.cpp | |
parent | 8620f57f7101b2090add89330e74854b77161d3f (diff) |
roll back player controller
Diffstat (limited to 'game/prefab/PlayerScript.cpp')
-rw-r--r-- | game/prefab/PlayerScript.cpp | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/game/prefab/PlayerScript.cpp b/game/prefab/PlayerScript.cpp deleted file mode 100644 index 3d06476..0000000 --- a/game/prefab/PlayerScript.cpp +++ /dev/null @@ -1,13 +0,0 @@ -#include <cassert> -#include <crepe/api/Rigidbody.h> - -#include "PlayerScript.h" - -using namespace crepe; -using namespace std; - -PlayerScript::PlayerScript(const PlayerObject & player) : player(player) {} - -void PlayerScript::fixed_update(crepe::duration_t dt) { - if (this->get_key_state(Keycode::SPACE)) player.body.add_force_linear({0, -10}); -} |