aboutsummaryrefslogtreecommitdiff
path: root/game/Config.h
diff options
context:
space:
mode:
authorJaro <59013720+JaroWMR@users.noreply.github.com>2025-01-08 09:31:14 +0100
committerGitHub <noreply@github.com>2025-01-08 09:31:14 +0100
commite75ca1c947f3cde19bebf15049732bc069c6e913 (patch)
treecdaa7a2c06ffc7f41366d4106e16f254e3b9cdc5 /game/Config.h
parentf31bd86ae5d7df21b788a273d4f2e530136ec184 (diff)
parent0d087f23affbdf5bcfb238bc9b9d3fc05b314c44 (diff)
Merge pull request #101 from lonkaars/jaro/main-menu
Jaro/main menu
Diffstat (limited to 'game/Config.h')
-rw-r--r--game/Config.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/game/Config.h b/game/Config.h
index ea95a90..6a5299b 100644
--- a/game/Config.h
+++ b/game/Config.h
@@ -1,9 +1,11 @@
#pragma once
+#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
static constexpr int SORT_IN_LAY_FORE_BACKGROUND = 5; // For all scenes
static constexpr int SORT_IN_LAY_PARTICLES_BACKGROUND = 6; // For all scenes
+static constexpr int SORT_IN_LAY_COINS = 7; // Only for GameScene
static constexpr int SORT_IN_LAY_OBSTACLES = 8; // Only for GameScene
static constexpr int SORT_IN_LAY_PLAYER = 10; // Only for GameScene
static constexpr int SORT_IN_LAY_WORKERS = 12; // Only for GameScene
@@ -22,7 +24,23 @@ static constexpr int GAME_HEIGHT = 800; // In game units
static constexpr int VIEWPORT_X = 1100; // In game units
// 'GAME_HEIGHT' (below) should be replaced by '500' when game development is finished
-static constexpr int VIEWPORT_Y = GAME_HEIGHT; // In game units
+static constexpr int VIEWPORT_Y = 500; // In game units
+// Font settings
+static constexpr const char * FONT = "Jetpackia";
+static constexpr crepe::vec2 FONTOFFSET = {0, 0};
+
+// Amount of coins in game
+static constexpr const char * TOTAL_COINS_GAME = "total_coins_game";
+
+// Amount of coins in current run
+static constexpr const char * TOTAL_COINS_RUN = "total_coins_run";
+
+// Distance
+static constexpr const char * DISTANCE_GAME = "distance_game";
+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