diff options
author | Max-001 <80035972+Max-001@users.noreply.github.com> | 2025-01-08 15:28:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-01-08 15:28:25 +0100 |
commit | 52dab49823377e9ffaf7b583edc102b559e7382a (patch) | |
tree | d966a39f23ac053c6cc5cee678d55c28f795704f /game/player | |
parent | 0b9574bdd6c5968c07bcf165d66032b75649b5da (diff) | |
parent | e732abef5d0170cacf290de12a402dbd19f31a87 (diff) |
Merge pull request #114 from lonkaars/max/game2
Max/game2
Diffstat (limited to 'game/player')
-rw-r--r-- | game/player/PlayerEndScript.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/game/player/PlayerEndScript.cpp b/game/player/PlayerEndScript.cpp index fb18f2f..047dbb0 100644 --- a/game/player/PlayerEndScript.cpp +++ b/game/player/PlayerEndScript.cpp @@ -90,7 +90,7 @@ bool PlayerEndScript::on_collision(const crepe::CollisionEvent & ev) { jump++; } - if (rb_player.data.linear_velocity.x < 5) { + if (rb_player.data.linear_velocity.x < 5 && jump >= 3) { this->trigger_event<EndGameEvent>(); } |