it works but without figures

This commit is contained in:
Rorikstr | Rust Dev 2025-09-29 17:17:35 +03:00
parent e9785c4906
commit f5b65a390b
6 changed files with 75 additions and 17 deletions

View file

@ -87,10 +87,10 @@ void clear_lines() {
// Начисление очков
if (lines_cleared > 0) {
int points[] = {0, 100, 300, 700, 1500};
state->info.score += points[lines_cleared];
if (state->info.score / 600 > state->info.level - 1) {
state->info.level++;
state->info.speed = state->info.level;
state->info->score += points[lines_cleared];
if (state->info->score / 600 > state->info->level - 1) {
state->info->level++;
state->info->speed = state->info->level;
}
}
}