Intermission 2
This commit is contained in:
@@ -16,9 +16,10 @@ namespace Marro.PacManUdon
|
||||
statusDisplay.SetLevelDisplayVisible(true);
|
||||
break;
|
||||
case 1:
|
||||
// Start animation, blinky chasing pacman
|
||||
// Start animation, pacman running and blinky prepared to chase
|
||||
soundManager.SuppressSound(false);
|
||||
soundManager.StartIntermissionSound();
|
||||
|
||||
pacMan.Reset();
|
||||
pacMan.SetLevel(4);
|
||||
pacMan.SetPowerPellet(false); // Update speed
|
||||
@@ -35,10 +36,14 @@ namespace Marro.PacManUdon
|
||||
blinky.SetPosition(intermissionScreenElements[1].transform.localPosition);
|
||||
blinky.SetDirection(Vector2.left);
|
||||
blinky.SetState(PacManGhostState.Normal);
|
||||
blinky.SetActive(true);
|
||||
|
||||
SetFrozen(false);
|
||||
break;
|
||||
case 2:
|
||||
// Start blinky chasing
|
||||
blinky.SetActive(true);
|
||||
break;
|
||||
case 3:
|
||||
// Reached end, make ghost scared and turn around
|
||||
blinky.BecomeScared();
|
||||
blinky.SetPosition(intermissionScreenElements[3].transform.localPosition);
|
||||
@@ -47,12 +52,12 @@ namespace Marro.PacManUdon
|
||||
pacMan.SetPowerPellet(true);
|
||||
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
// Pacman starts changing ghosts
|
||||
pacMan.SetDirection(Vector2.right);
|
||||
pacMan.BecomeBig();
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
// End cutscene
|
||||
soundManager.StopAllSound();
|
||||
SetFrozen(true);
|
||||
|
||||
Reference in New Issue
Block a user