aboutsummaryrefslogtreecommitdiff
path: root/game/Config.h
diff options
context:
space:
mode:
authorloek <32883851+lonkaars@users.noreply.github.com>2025-01-10 09:10:42 +0100
committerGitHub <noreply@github.com>2025-01-10 09:10:42 +0100
commitd20b25828b53af170a6534263e8de114e7fac121 (patch)
treeb1965b053d17405f12ce5043577237880df0f205 /game/Config.h
parent8b32dbc33c434f84b4aab98819147c3b8416ff69 (diff)
parentfbf1d0a0f75ba6a7caced72d9bb0a7f66763122b (diff)
Merge pull request #124 from lonkaars/loek/game
improve player responsiveness
Diffstat (limited to 'game/Config.h')
-rw-r--r--game/Config.h16
1 files changed, 4 insertions, 12 deletions
diff --git a/game/Config.h b/game/Config.h
index 8fa41ba..c6bbfda 100644
--- a/game/Config.h
+++ b/game/Config.h
@@ -1,16 +1,6 @@
#pragma once
-#include "types.h"
-
-#include <crepe/api/Config.h>
-static const crepe::Config ENGINE_CONFIG {
- .log {
- .level = crepe::Log::Level::DEBUG,
- },
- .window_settings {
- .window_title = "Jetpack joyride clone",
- },
-};
+#include "types.h"
static constexpr int SORT_IN_LAY_BACK_BACKGROUND = 3; // For all scenes
static constexpr int SORT_IN_LAY_BACKGROUND = 4; // For all scenes
@@ -59,7 +49,9 @@ static constexpr const char * DISTANCE_RUN = "distance_run";
// Player config
static constexpr const char * PLAYER_NAME = "player";
static constexpr int PLAYER_SPEED = 7500; // In game units
-static constexpr int PLAYER_GRAVITY_SCALE = 60; // In game units
+static constexpr float PLAYER_GRAVITY_SCALE = 3; // factor
+static constexpr float PLAYER_HELP_KICK_SCALE = 0.2; // factor
+static constexpr float PLAYER_HELP_KICK_MAX = 0.3; // factor
static constexpr const char * CAMERA_NAME = "camera";
// Jetpack particles