fixed counter timer when start playing game and exit game

This commit is contained in:
2025-11-23 10:02:02 +01:00
parent 5bf87f2c21
commit b33a90d5c5
5 changed files with 24 additions and 18 deletions

View File

@ -34,7 +34,7 @@ void LineEffect::Particle::update() {
y += vy * 0.016f;
vy += 250.0f * 0.016f;
vx *= 0.98f;
alpha -= 0.08f; // Slower fade for blocks
alpha -= 0.025f; // Slower fade for blocks (longer visibility)
if (alpha < 0.0f) alpha = 0.0f;
if (size > 2.0f) size -= 0.05f;
@ -145,7 +145,7 @@ void LineEffect::startLineClear(const std::vector<int>& rows, int gridX, int gri
void LineEffect::createParticles(int row, int gridX, int gridY, int blockSize) {
// Create particles spread across the row with explosive pattern
int particlesPerRow = 35; // More particles for dramatic explosion effect
int particlesPerRow = 60; // More particles for dramatic explosion effect
for (int i = 0; i < particlesPerRow; ++i) {
// Create particles along the entire row width