aboutsummaryrefslogtreecommitdiff
path: root/game/player
diff options
context:
space:
mode:
authorWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-09 14:51:48 +0100
committerWBoerenkamps <wrj.boerenkamps@student.avans.nl>2025-01-09 14:51:48 +0100
commit8bd94b7a0a1eb7c2f6ca003fac95bea858671218 (patch)
tree4389c575dc7e80c8e9c16b90a1c81e188f09617c /game/player
parentc1f7b409bd6c883f7e9ff0f81afd3bee47469bdd (diff)
removed player spawn battle
Diffstat (limited to 'game/player')
-rw-r--r--game/player/PlayerScript.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/game/player/PlayerScript.cpp b/game/player/PlayerScript.cpp
index c072e06..1283d0a 100644
--- a/game/player/PlayerScript.cpp
+++ b/game/player/PlayerScript.cpp
@@ -104,12 +104,7 @@ void PlayerScript::fixed_update(crepe::duration_t dt) {
last_fired = now;
}
}
- if (this->get_key_state(Keycode::P)) {
- this->trigger_event<BattleStartEvent>(BattleStartEvent{
- .num_enemies = 4,
- .battle = true,
- });
- }
+
if (this->get_key_state(Keycode::SPACE)) {
rb.add_force_linear(vec2(0, -PLAYER_GRAVITY_SCALE / 2.5) * dt.count() / 0.02);
if (prev_anim != 1) {