it works but without figures
This commit is contained in:
parent
e9785c4906
commit
f5b65a390b
6 changed files with 75 additions and 17 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue