update visually

This commit is contained in:
2025-12-22 18:49:06 +01:00
parent d3ca238a51
commit 3c9dc0ff65
3 changed files with 232 additions and 41 deletions

View File

@ -24,9 +24,14 @@ public:
private:
struct SyncParticle {
float x;
float y;
float speed;
float vx;
float vy;
float w;
float h;
float alpha;
SDL_Color color;
};
SDL_FRect m_rect{};
@ -40,7 +45,7 @@ private:
std::vector<SyncParticle> m_particles;
static constexpr float FLASH_DURATION = 0.15f;
static constexpr size_t MAX_PARTICLES = 64;
static constexpr size_t MAX_PARTICLES = 240;
void SpawnParticle();
void SpawnBurst(int count);