Exemplo n.º 1
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Breakout game = new Breakout())
     {
         game.Run();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// The main entry point for the application.
 /// </summary>
 static void Main(string[] args)
 {
     using (Breakout game = new Breakout())
     {
         game.Run();
     }
 }
Exemplo n.º 3
0
        public void playTheme(Breakout.GameState state, Breakout.NewGameMenu state2)
        {
            switch (state)
            {
                case Breakout.GameState.StartMenu:

                    if (!MainMenu_Music.IsPlaying)
                    {
                        MainMenu_Music.Play();
                    }
                    break;

                case Breakout.GameState.NewGame:
                     switch(state2)
                        {
                            case Breakout.NewGameMenu.Normal:
                                if (MainMenu_Music.IsPlaying)
                                {
                                    MainMenu_Music.Stop(AudioStopOptions.Immediate);
                                }
                                if (!Normalscene_music.IsPlaying)
                                {
                                    Normalscene_music.Play();
                                }
                                break;

                            case Breakout.NewGameMenu.Hard:
                                if (MainMenu_Music.IsPlaying)
                                {
                                    MainMenu_Music.Stop(AudioStopOptions.Immediate);
                                }
                                if (!Hardscene_music.IsPlaying)
                                {
                                    Hardscene_music.Play();
                                }
                                break;
                        }
                    break;

                default:
                    break;

            }
        }