tweak(titol): PREMEU START en blanc, JAILGAMES en verd estàndard i copyright el mateix verd amb menys brillo
This commit is contained in:
@@ -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 {
|
||||
@@ -116,6 +117,7 @@ namespace Defaults::Title {
|
||||
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).
|
||||
@@ -162,9 +164,9 @@ namespace Defaults::Title {
|
||||
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 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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user