public TimeOutGameState(SuperPixelBrosGame game, ArrayList controllerList, ICamera camera) : base(game, controllerList, camera) { levelTimeOut = 150; MediaPlayer.Stop(); ScoreKeeper.Instance.DecrementLives(); ScoreKeeper.Instance.ResetToLevelStart(); }
public WarpGameState(SuperPixelBrosGame game, ArrayList controllerList, ICamera camera, IMario mario, Vector2 location) : base(game, controllerList, camera) { MediaPlayer.Stop(); SoundFactory.Instance.PlaySoundEffect("SOUND_PIPE"); this.mario = mario; this.location = location; sinkTimeOut = 60; riseTimeOut = 60; loadTimeOut = 60; mario.Idle(); }
public CodeEntryGameState(SuperPixelBrosGame game, ArrayList controllerList, ICamera camera) : base(game, controllerList, camera) { pauseTimer = 15; game.DelayInput(15); MediaPlayer.Stop(); foreach (IController controller in controllerList) { if (controller is PasswordInputController) { this.controller = (PasswordInputController)controller; } } }
public MarioStartLevelState(SuperPixelBrosGame game, ArrayList controllerList, ICamera camera) : base(game, controllerList, camera) { MediaPlayer.Stop(); SuperPixelBrosGame.ResetLevel(); if (ScoreKeeper.Instance.Lives == -1) { SoundFactory.Instance.PlaySoundEffect("SOUND_GAMEOVER"); loadTimeOut = 250; } else { loadTimeOut = 120; } }
public NormalGameState(SuperPixelBrosGame game, ArrayList controllerList, ICamera camera) : base(game, controllerList, camera) { }
public MarioTransitionGameState(SuperPixelBrosGame game, ArrayList controllerList, ICamera camera) : base(game, controllerList, camera) { transitionTimeOut = 80; }
public PauseGameState(SuperPixelBrosGame game, ArrayList controllerList, ICamera camera) : base(game, controllerList, camera) { pauseTimer = 15; game.DelayInput(15); MediaPlayer.Stop(); }