aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax-001 <maxsmits21@kpnmail.nl>2025-01-10 16:47:08 +0100
committerMax-001 <maxsmits21@kpnmail.nl>2025-01-10 16:47:08 +0100
commit90a33d36c34b1512270a6724564995dd8bf914a6 (patch)
tree9461916069712418f870a4fce677d407d959b8e4
parent892e109b5a0ca943c15b589a0c7621bc395223cd (diff)
Bug fixes
-rw-r--r--game/player/PlayerEndScript.cpp3
-rw-r--r--src/crepe/api/Config.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/game/player/PlayerEndScript.cpp b/game/player/PlayerEndScript.cpp
index 4ae813f..62fd350 100644
--- a/game/player/PlayerEndScript.cpp
+++ b/game/player/PlayerEndScript.cpp
@@ -92,8 +92,9 @@ bool PlayerEndScript::on_collision(const crepe::CollisionEvent & ev) {
jump++;
}
- if (rb_player.data.linear_velocity.x < 5 && jump >= 3) {
+ if (rb_player.data.linear_velocity.x < 5 && jump == 3) {
this->trigger_event<EndGameEvent>();
+ jump++;
}
return false;
diff --git a/src/crepe/api/Config.h b/src/crepe/api/Config.h
index 7475528..65a8302 100644
--- a/src/crepe/api/Config.h
+++ b/src/crepe/api/Config.h
@@ -86,7 +86,7 @@ struct Config final {
* This config option is the font size at which all fonts will be loaded initially.
*
*/
- unsigned int size = 500;
+ unsigned int size = 100;
} font;
//! Configuration for click tolerance.
struct {