update visually
This commit is contained in:
@ -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);
|
||||
|
||||
Reference in New Issue
Block a user