예제 #1
0
 public SCastleComplete(Game1 game, SInLevel state)
 {
     SoundPanel.PlaySong(Sound.castleComplete, false);
     this.counter = 0;
     this.Game    = game;
     this.state   = state;
     Game.state   = this;
 }
예제 #2
0
 public SLevelComplete(Game1 game, SInLevel state)
 {
     SoundPanel.StopSong();
     this.counter   = 0;
     this.Game      = game;
     this.state     = state;
     Game.state     = this;
     this.fireworks = HUD.TIME % 10 == 1 || HUD.TIME % 10 == 3 || HUD.TIME % 10 == 6 ? HUD.TIME % 10 : 0;
     for (int i = 0; i < fireworkPos.Length; i++)
     {
         fireworkPos[i] += new Vector2(state.Level.Size.Width, 0);
     }
 }