feat(firework): halo neon per partícula amb color de glow propi (explosió enemic: línia blanca + halo daurat)
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user