tune(trail): vida més llarga, offset darrere i paleta vermella per al P2
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
#include <SDL3/SDL.h>
|
||||
|
||||
#include <array>
|
||||
#include <cstdint>
|
||||
#include <memory>
|
||||
|
||||
#include "core/defaults/trail.hpp"
|
||||
@@ -33,8 +34,9 @@ namespace Effects {
|
||||
private:
|
||||
struct Particle {
|
||||
bool active{false};
|
||||
Vec2 origin{}; // punt de naixement (no es desplaça)
|
||||
float phase_x{0.0F}; // fase oscil·lació horitzontal
|
||||
std::uint8_t player_id{0}; // 0=P1, 1=P2 — selecciona paleta de colors
|
||||
Vec2 origin{}; // punt de naixement (no es desplaça)
|
||||
float phase_x{0.0F}; // fase oscil·lació horitzontal
|
||||
float phase_y{0.0F};
|
||||
float phase_pulse{0.0F};
|
||||
float age{0.0F};
|
||||
@@ -42,8 +44,8 @@ namespace Effects {
|
||||
float scale{1.0F};
|
||||
};
|
||||
|
||||
void tryEmitFromShip(const Ship& ship, std::size_t player_id, float delta_time);
|
||||
void emitAt(Vec2 pos);
|
||||
void tryEmitFromShip(const Ship& ship, std::uint8_t player_id, float delta_time);
|
||||
void emitAt(Vec2 pos, std::uint8_t player_id);
|
||||
auto findFreeSlot() -> int;
|
||||
void drawParticle(const Particle& particle) const;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user