From 6570bf598a3b3768fe34827529df5ea0b4b26f0e Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Fri, 20 Dec 2024 12:52:15 +0100 Subject: move game files --- src/example/PlayerScript.cpp | 11 ----------- 1 file changed, 11 deletions(-) delete mode 100644 src/example/PlayerScript.cpp (limited to 'src/example/PlayerScript.cpp') 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 - -using namespace crepe; -using namespace std; - -void PlayerScript::fixed_update(crepe::duration_t dt) { - Rigidbody & rb = this->get_components_by_name("player").front(); - if (this->get_key_state(Keycode::SPACE)) rb.add_force_linear(vec2(0, -10)); -} -- cgit v1.2.3