aboutsummaryrefslogtreecommitdiff
path: root/game/PlayerScript.cpp
diff options
context:
space:
mode:
authorJAROWMR <jarorutjes07@gmail.com>2025-01-06 11:27:15 +0100
committerJAROWMR <jarorutjes07@gmail.com>2025-01-06 11:27:15 +0100
commitc35a53ff122d9ea3547ef8ae6035bd9e1b10d4cb (patch)
tree38af0734a951440ffdc7daac0e66aa1ba9b7287b /game/PlayerScript.cpp
parent2c4494e371881361e5c883e8fe6952af3400cadc (diff)
parent20ae1e9dc2043ef3c190f77dd5f9de74bcd533de (diff)
pull max char
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));
-}