From 743cdd5b2fe175605352c337396c3d70dac66247 Mon Sep 17 00:00:00 2001 From: Loek Le Blansch Date: Tue, 7 Jan 2025 09:43:53 +0100 Subject: roll back player controller --- game/prefab/PlayerScript.cpp | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 game/prefab/PlayerScript.cpp (limited to 'game/prefab/PlayerScript.cpp') 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 -#include - -#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}); -} -- cgit v1.2.3