aboutsummaryrefslogtreecommitdiff
path: root/game
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 15:50:12 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-08 15:50:12 +0100
commit65eff0cb9b645f81f8231e14f1e92c2abcda35ef (patch)
treeaf0575f5c67fd44f579271be989d0a03a233b502 /game
parentb6c7811eae4fa7c51f82c44c1558fcafc79c21e0 (diff)
removed p
Diffstat (limited to 'game')
-rw-r--r--game/player/PlayerScript.cpp5
1 files changed, 0 insertions, 5 deletions
diff --git a/game/player/PlayerScript.cpp b/game/player/PlayerScript.cpp
index d32da0b..57819c0 100644
--- a/game/player/PlayerScript.cpp
+++ b/game/player/PlayerScript.cpp
@@ -94,11 +94,6 @@ void PlayerScript::fixed_update(crepe::duration_t dt) {
}
Rigidbody & rb = this->get_components_by_name<Rigidbody>("player").front();
- if (this->get_key_state(Keycode::P)) {
- this->trigger_event<BattleStartEvent>(BattleStartEvent {
- .num_enemies = 5,
- });
- }
if (this->get_key_state(Keycode::ENTER)) {
auto now = std::chrono::steady_clock::now();