feat(firework): halo neon per partícula amb color de glow propi (explosió enemic: línia blanca + halo daurat)

This commit is contained in:
2026-05-22 21:57:11 +02:00
parent 7b9b5ce569
commit c32b564da1
7 changed files with 96 additions and 12 deletions
+5 -1
View File
@@ -35,11 +35,15 @@ namespace Effects {
// initial_speed: velocitat radial inicial (px/s).
// n_points: nombre de línies. Default Defaults::FX::Firework::N_POINTS.
// initial_brightness: 0..1.
// glow: si true, cada partícula es renderitza amb halo neon.
// glow_color: color del halo. Si alpha==0, agafa el color de la línia.
void spawn(const Vec2& origen,
SDL_Color color = Defaults::FX::Firework::DEFAULT_COLOR,
float initial_speed = Defaults::FX::Firework::SPEED,
int n_points = Defaults::FX::Firework::N_POINTS,
float initial_brightness = Defaults::FX::Firework::INITIAL_BRIGHTNESS);
float initial_brightness = Defaults::FX::Firework::INITIAL_BRIGHTNESS,
bool glow = false,
SDL_Color glow_color = {0, 0, 0, 0});
void update(float delta_time);
void draw() const;