aboutsummaryrefslogtreecommitdiff
path: root/game/PlayerScript.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2025-01-07 10:37:52 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2025-01-07 10:37:52 +0100
commitd46548ab15699f7ae91227625302553e79a126bc (patch)
treee5b05fc99dca66512cf76cce30bf905e2213de8b /game/PlayerScript.cpp
parentc817f6ff091de9869c803868c50a9ea884ead376 (diff)
parent77d02bf2e2d5d04e8cacb3c783446541517e8e76 (diff)
merge master
Diffstat (limited to 'game/PlayerScript.cpp')
-rw-r--r--game/PlayerScript.cpp11
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));
-}