diff --git a/source/core/defaults/title.hpp b/source/core/defaults/title.hpp index 8f5c3ff..b6a44b7 100644 --- a/source/core/defaults/title.hpp +++ b/source/core/defaults/title.hpp @@ -9,6 +9,7 @@ #include "core/defaults/game.hpp" #include "core/defaults/math.hpp" +#include "core/rendering/line_renderer.hpp" // Title scene ship animations (naves 3D flotantes a l'escena de título) namespace Defaults::Title { @@ -113,10 +114,11 @@ namespace Defaults::Title { constexpr float COPYRIGHT_LINE_SPACING = 0.0F; // Entre línies copyright (5px) // Factors de scale - constexpr float LOGO_SCALE = 0.6F; // Escala "ORNI ATTACK!" - constexpr float PRESS_START_SCALE = 1.0F; // Escala "PRESS START TO PLAY" - constexpr float COPYRIGHT_SCALE = 0.5F; // Escala copyright - constexpr float JAILGAMES_SCALE = 0.25F; // Escala del logo JAILGAMES pequeño sobre el copyright + constexpr float LOGO_SCALE = 0.6F; // Escala "ORNI ATTACK!" + constexpr float PRESS_START_SCALE = 1.0F; // Escala "PRESS START TO PLAY" + constexpr float COPYRIGHT_SCALE = 0.5F; // Escala copyright + constexpr float COPYRIGHT_BRIGHTNESS = 0.55F; // Mateix verd que JAILGAMES, però menys brillant + constexpr float JAILGAMES_SCALE = 0.25F; // Escala del logo JAILGAMES pequeño sobre el copyright // Separación entre el logo JAILGAMES y la línea de copyright (proporción de Game::HEIGHT). constexpr float JAILGAMES_COPYRIGHT_GAP = 0.015F; @@ -157,14 +159,14 @@ namespace Defaults::Title { // alpha = 255 (sentinela "color vàlid") fa que el pipeline ignori // el color global de l'oscil·lador per a aquesta crida. namespace Colors { - constexpr SDL_Color LOGO_MAIN = {.r = 80, .g = 240, .b = 255, .a = 255}; // Cian elèctric - constexpr SDL_Color LOGO_SHADOW = {.r = 255, .g = 60, .b = 180, .a = 255}; // Magenta neon (offset) - constexpr SDL_Color SHIP_P1 = {.r = 255, .g = 100, .b = 200, .a = 255}; // Rosa hot - constexpr SDL_Color SHIP_P2 = {.r = 160, .g = 120, .b = 255, .a = 255}; // Violeta elèctric - constexpr SDL_Color STARFIELD = {.r = 200, .g = 220, .b = 255, .a = 255}; // Blanc-blau gel - constexpr SDL_Color PRESS_START = {.r = 255, .g = 200, .b = 70, .a = 255}; // Ambre neon - constexpr SDL_Color JAILGAMES_LOGO = {.r = 120, .g = 220, .b = 200, .a = 255}; // Teal suau - constexpr SDL_Color COPYRIGHT = {.r = 140, .g = 180, .b = 200, .a = 255}; // Gris-cian apagat + constexpr SDL_Color LOGO_MAIN = {.r = 80, .g = 240, .b = 255, .a = 255}; // Cian elèctric + constexpr SDL_Color LOGO_SHADOW = {.r = 255, .g = 60, .b = 180, .a = 255}; // Magenta neon (offset) + constexpr SDL_Color SHIP_P1 = {.r = 255, .g = 100, .b = 200, .a = 255}; // Rosa hot + constexpr SDL_Color SHIP_P2 = {.r = 160, .g = 120, .b = 255, .a = 255}; // Violeta elèctric + constexpr SDL_Color STARFIELD = {.r = 200, .g = 220, .b = 255, .a = 255}; // Blanc-blau gel + constexpr SDL_Color PRESS_START = {.r = 255, .g = 255, .b = 255, .a = 255}; // Blanc + constexpr SDL_Color JAILGAMES_LOGO = ::Rendering::DEFAULT_LINE_COLOR; // Verd estàndard del joc + constexpr SDL_Color COPYRIGHT = ::Rendering::DEFAULT_LINE_COLOR; // Mateix verd (el brillo es baixa al render: COPYRIGHT_BRIGHTNESS) } // namespace Colors } // namespace Defaults::Title diff --git a/source/game/scenes/title_scene.cpp b/source/game/scenes/title_scene.cpp index c930a24..2dbc719 100644 --- a/source/game/scenes/title_scene.cpp +++ b/source/game/scenes/title_scene.cpp @@ -299,7 +299,7 @@ void TitleScene::dibuixarPeuTitol(float spacing) const { const float COPY_X = SCREEN_CENTRE_X; // ja al centre const float COPY_Y = SCREEN_CENTRE_Y + (COPYRIGHT_S * (Y_COPY_FINAL - SCREEN_CENTRE_Y)); const float COPY_RENDER_SCALE = Defaults::Title::Layout::COPYRIGHT_SCALE * COPYRIGHT_S; - text_.renderCentered(copyright, {.x = COPY_X, .y = COPY_Y}, COPY_RENDER_SCALE, spacing, 1.0F, Defaults::Title::Colors::COPYRIGHT); + text_.renderCentered(copyright, {.x = COPY_X, .y = COPY_Y}, COPY_RENDER_SCALE, spacing, Defaults::Title::Layout::COPYRIGHT_BRIGHTNESS, Defaults::Title::Colors::COPYRIGHT); } auto TitleScene::isFinished() const -> bool {