示例#1
0
        protected override void Initialize()
        {
            this.IsMouseVisible = true;
            KB.Old = Keyboard.GetState();

            Langue.Choisie = "en";
            Ressources.LoadLangue();

            menu = new Menu();
            menu.Initialize(-37, 0); //initialisation menu

            game = new Gameplay();

            multigame = new MultiGameplay();

            menupauseaide = new MenuPauseAide();

            menuaide = new MenuAide();
            menuaide.Initialize(); //initialisation menu aide

            menuchoose = new MenuChoose(game, Content);
            menuchoose.Initialize(); //initialisation menu options

            menuconnection = new MenuConnection(multigame);
            menuconnection.Initialize();

            multimenuchoose = new MultiMenuChoose(multigame, Components);
            multimenuchoose.Initialize();

            menuname = new MenuName();
            menuname.Initialize(); //initialisation menu options

            menuoptions = new MenuOptions(menu, menuaide, menuchoose);
            menuoptions.Initialize(); //initialisation menu options

            gameover = new GameOver();
            multigameover = new MultiGameOver();
            multigamewin = new MultiGameWin();

            pong = new Pong();
            pong.Initialize();

            keybonusgame = new KeyBonusGame();
            keybonusgame.Initialize();

            menupause = new MenuPause(pong, keybonusgame);
            menupause.Initialize(450, 0); //initialisation menu pause

            multimenupause = new MultiMenuPause();
            multimenupause.Initialize(450, 0); //initialisation menu pause

            menumode = new MenuMode();
            menumode.Initialize();

            audioPlay = new AudioPlay(1f);
            GameState.State = "Generique"; //mise à l'état initial

            base.Initialize();
        }
示例#2
0
 public MenuPause(Pong newGame, KeyBonusGame keybonusgame)
 {
     this.newGame = newGame;
     this.keybonusgame = keybonusgame;
 }