start new wipe approach

This commit is contained in:
2024-05-03 16:21:20 +02:00
parent 09fe302e63
commit 78df7eee66
3 changed files with 22 additions and 6 deletions

View File

@ -69,24 +69,26 @@ void gameExec(void *handle) {
proceedDelay--;
if (proceedDelay == 0) {
rowIndex = 0;
state = e_ClearRows;
state = e_Down;
}
break;
case e_ClearRows:
state = e_Down;
break;
case e_Down:
if (! stoneMoveDown()) {
soundCtrl(SOUND_LOCK);
state = e_NewStone;
stoneLock();
state = e_ClearRows;
} else {
proceedDelay = delayFactor(level);
state = e_DownDelay;
}
break;
case e_ClearRows:
// clear filled lines
state = e_NewStone;
break;
// --- phase: game over ---------------------------------------------------
case e_GameOver:
soundCtrl(SOUND_GAMEOVER);