From ab5489a080ad834ec4d47dd2722c274850d285e1 Mon Sep 17 00:00:00 2001 From: Sergio Valor Date: Fri, 29 May 2026 19:12:53 +0200 Subject: [PATCH] tweak(nau): la nau ferida parpelleja en roig pur en lloc de daurat --- data/entities/player/player.yaml | 2 +- source/game/entities/ship.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/entities/player/player.yaml b/data/entities/player/player.yaml index 27503e6..5efc6fe 100644 --- a/data/entities/player/player.yaml +++ b/data/entities/player/player.yaml @@ -43,7 +43,7 @@ visual_thrust: colors: normal: [255, 255, 255] # blanc neutre - hurt: [255, 220, 60] # daurat (estat ferit) + hurt: [255, 0, 0] # roig pur (estat ferit) weapon: bullet_speed: 700.0 # velocitat escalar de la bullet (px/s) diff --git a/source/game/entities/ship.cpp b/source/game/entities/ship.cpp index daf99d6..baa9ce0 100644 --- a/source/game/entities/ship.cpp +++ b/source/game/entities/ship.cpp @@ -162,7 +162,7 @@ void Ship::draw() const { const float THRUST_MODULATOR = 1.0F + (VISUAL_PUSH / config_.visual_thrust.scale_divisor); const float SCALE = config_.shape.scale * THRUST_MODULATOR; - // Parpelleig daurat mentre està ferida: alterna color normal ↔ color hurt. + // Parpelleig mentre està ferida: alterna color normal ↔ color hurt. SDL_Color color = config_.colors.normal; if (hurt_timer_ > 0.0F) { const float CYCLE = 1.0F / config_.hurt.blink_hz;