aboutsummaryrefslogtreecommitdiff
path: root/game/Config.h
diff options
context:
space:
mode:
authorheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 14:39:16 +0100
committerheavydemon21 <nielsstunnebrink1@gmail.com>2025-01-08 14:39:16 +0100
commit18a8813645187102fc6261b8d5be1a41c8f0dae4 (patch)
tree655c5d22027fa23af3378df2d92d4051a71be2a6 /game/Config.h
parent0729209117a4393e66d7f5b6d83083e2d7c0694c (diff)
parentd9c67da9b8c2d8d25ef4dd2c700ddc78573d3a60 (diff)
Merge remote-tracking branch 'origin/loek/game' into niels/game
Diffstat (limited to 'game/Config.h')
-rw-r--r--game/Config.h21
1 files changed, 18 insertions, 3 deletions
diff --git a/game/Config.h b/game/Config.h
index f1b64b3..64f2828 100644
--- a/game/Config.h
+++ b/game/Config.h
@@ -1,6 +1,17 @@
#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",
+ },
+};
+
static constexpr int SORT_IN_LAY_BACK_BACKGROUND = 3; // For all scenes
static constexpr int SORT_IN_LAY_BACKGROUND = 4; // For all scenes
static constexpr int SORT_IN_LAY_FORE_BACKGROUND = 5; // For all scenes
@@ -21,11 +32,12 @@ static constexpr int COLL_LAY_ZAPPER = 6; // Only for GameScene
static constexpr int COLL_LAY_LASER = 7; // Only for GameScene
static constexpr int COLL_LAY_MISSILE = 8; // Only for GameScene
-static constexpr int GAME_HEIGHT = 800; // In game units
+static constexpr float GAME_HEIGHT = 800; // In game units
+static constexpr float HALLWAY_HEIGHT = 475; // In game units
-static constexpr int VIEWPORT_X = 1100; // 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
-static constexpr int VIEWPORT_Y = 500; // In game units
+static constexpr float VIEWPORT_Y = 500; // In game units
// Font settings
static constexpr const char * FONT = "Jetpackia";
@@ -45,3 +57,6 @@ static constexpr const char * DISTANCE_RUN = "distance_run";
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 const char* CAMERA_NAME = "camera";
+