aboutsummaryrefslogtreecommitdiff
path: root/src/example/PlayerScript.cpp
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-12-20 12:52:15 +0100
committerLoek Le Blansch <loek@pipeframe.xyz>2024-12-20 12:52:15 +0100
commit6570bf598a3b3768fe34827529df5ea0b4b26f0e (patch)
tree863f6520fd13017dffa5e01ce6b0f60770b4c505 /src/example/PlayerScript.cpp
parent43c6971591aaff8ada4adc1b1b4146b19d43f8e9 (diff)
move game files
Diffstat (limited to 'src/example/PlayerScript.cpp')
-rw-r--r--src/example/PlayerScript.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/src/example/PlayerScript.cpp b/src/example/PlayerScript.cpp
deleted file mode 100644
index 1c388f5..0000000
--- a/src/example/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));
-}