Separated time sequences

This commit is contained in:
2025-12-14 16:50:47 +01:00
parent a2a576a0c9
commit 8cf3f95af9
30 changed files with 1034 additions and 886 deletions

View File

@@ -0,0 +1,45 @@
namespace Marro.PacManUdon
{
public partial class GameManager
{
private void TimeSequenceStepBoardClear(int sequenceProgress)
{
switch (sequenceProgress)
{
case 0:
// Freeze
SetFrozen(true);
soundManager.StopAllSound();
break;
case 1:
// Start board blinking, hide pellets in case of rack test
BoardClearAnimation();
SetPelletsActive(false);
break;
case 2:
// Hide ghosts
SetGhostsActive(false);
break;
case 3:
// Hide maze, lives indicator, level indicator
SetMazeVisible(false);
statusDisplay.SetExtraLivesDisplayVisible(false);
statusDisplay.SetLevelDisplayVisible(false);
break;
case 4:
// Hide score bar
statusDisplay.SetScoreDisplayVisible(false);
break;
case 5:
// Hide pacman, show level indicator with old level
SetPacManActive(false);
statusDisplay.SetLevelDisplayVisible(true);
break;
case 6:
// Call handler for what should happen next
InsertTimeSequence(PacManTimeSequence.StartNewLevel);
break;
}
}
}
}