aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--game/Config.h3
-rw-r--r--game/hud/HudSubScene.cpp2
-rw-r--r--game/menus/shop/ShopMenuScene.cpp4
-rw-r--r--src/crepe/api/Color.cpp1
-rw-r--r--src/crepe/api/Color.h1
5 files changed, 8 insertions, 3 deletions
diff --git a/game/Config.h b/game/Config.h
index f1b64b3..c2f95c0 100644
--- a/game/Config.h
+++ b/game/Config.h
@@ -45,3 +45,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
+
+// Jetpack particles
+static constexpr const char * JETPACK_PARTICLES = "jetpack_particles";
diff --git a/game/hud/HudSubScene.cpp b/game/hud/HudSubScene.cpp
index ca81614..dcc07b4 100644
--- a/game/hud/HudSubScene.cpp
+++ b/game/hud/HudSubScene.cpp
@@ -45,7 +45,7 @@ void HudSubScene::create(Scene & scn) {
size_coin, FONT,
Text::Data {
.world_space = false,
- .text_color = Color::YELLOW,
+ .text_color = Color::GOLD,
},
TOP_LEFT + FONTOFFSET + COINS_OFFSET + vec2 {COINS_LENGTH * COINS_CHAR_WIDTH / 2, 0},
COINS
diff --git a/game/menus/shop/ShopMenuScene.cpp b/game/menus/shop/ShopMenuScene.cpp
index ee0fb6b..d1ea81d 100644
--- a/game/menus/shop/ShopMenuScene.cpp
+++ b/game/menus/shop/ShopMenuScene.cpp
@@ -83,7 +83,7 @@ void ShopMenuScene::load_scene() {
vec2 {37.5, 37.5}, FONT,
Text::Data {
.world_space = true,
- .text_color = Color::YELLOW,
+ .text_color = Color::GOLD,
},
vec2 {-25, 75}, "0"
);
@@ -117,7 +117,7 @@ void ShopMenuScene::load_scene() {
vec2 {100, 25}, FONT,
Text::Data {
.world_space = true,
- .text_color = Color::YELLOW,
+ .text_color = Color::GOLD,
},
vec2 {-25, 75}, "1000"
);
diff --git a/src/crepe/api/Color.cpp b/src/crepe/api/Color.cpp
index 1374198..d0e3b35 100644
--- a/src/crepe/api/Color.cpp
+++ b/src/crepe/api/Color.cpp
@@ -11,3 +11,4 @@ const Color Color::CYAN {0x00, 0xff, 0xff};
const Color Color::YELLOW {0xff, 0xff, 0x00};
const Color Color::MAGENTA {0xff, 0x00, 0xff};
const Color Color::GREY {0x80, 0x80, 0x80};
+const Color Color::GOLD {249, 205, 91};
diff --git a/src/crepe/api/Color.h b/src/crepe/api/Color.h
index 22c0c43..dbfd0ed 100644
--- a/src/crepe/api/Color.h
+++ b/src/crepe/api/Color.h
@@ -19,6 +19,7 @@ struct Color {
static const Color YELLOW;
static const Color BLACK;
static const Color GREY;
+ static const Color GOLD;
};
} // namespace crepe