Ejemplo n.º 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();
        }
Ejemplo n.º 2
0
        private int selection; //selection verticale

        #endregion Fields

        #region Constructors

        public MultiMenuChoose(MultiGameplay game, GameComponentCollection Components)
        {
            this.game = game;
            live = false;
            this.Components = Components;
        }
Ejemplo n.º 3
0
        private int selection; //selection verticale

        #endregion Fields

        #region Constructors

        public MenuConnection(MultiGameplay game)
        {
            this.game = game;
        }