aboutsummaryrefslogtreecommitdiff
path: root/game/Config.h
diff options
context:
space:
mode:
Diffstat (limited to 'game/Config.h')
-rw-r--r--game/Config.h20
1 files changed, 7 insertions, 13 deletions
diff --git a/game/Config.h b/game/Config.h
index 8fa41ba..d2b5fc4 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
@@ -36,7 +26,7 @@ static constexpr int COLL_LAY_ENEMY = 10; // Only for GameScene
static constexpr int COLL_LAY_PLAYER_BULLET = 11; // Only for GameScene
static constexpr float GAME_HEIGHT = 800; // In game units
-static constexpr float HALLWAY_HEIGHT = 475; // In game units
+static constexpr float HALLWAY_HEIGHT = 450; // In game units
static constexpr float VIEWPORT_X = 1100; // In game units
// 'GAME_HEIGHT' (below) should be replaced by '500' when game development is finished
@@ -59,8 +49,12 @@ 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 = 2.2; // 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
static constexpr const char * JETPACK_PARTICLES = "jetpack_particles";
+
+static constexpr bool DISABLE_REPLAY = false;