Ejemplo n.º 1
0
 public TimeOutGameState(SuperPixelBrosGame game, ArrayList controllerList, ICamera camera) : base(game, controllerList, camera)
 {
     levelTimeOut = 150;
     MediaPlayer.Stop();
     ScoreKeeper.Instance.DecrementLives();
     ScoreKeeper.Instance.ResetToLevelStart();
 }
Ejemplo n.º 2
0
 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();
 }
Ejemplo n.º 3
0
 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;
         }
     }
 }
Ejemplo n.º 4
0
 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;
     }
 }
Ejemplo n.º 5
0
 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;
 }
Ejemplo n.º 7
0
 public PauseGameState(SuperPixelBrosGame game, ArrayList controllerList, ICamera camera) : base(game, controllerList, camera)
 {
     pauseTimer = 15;
     game.DelayInput(15);
     MediaPlayer.Stop();
 }