Beispiel #1
0
        public override void LoadContent()
        {
            base.LoadContent();
            AudioManager.Initialize(_contentManager);
            screenManager.ClearColor = Color.Black;
            _title = new Sprite("Title", (int)GameSettings.ScreenWidth / 2 - 512, 64 + 32, new Rectangle(0, 0, 1024, 128), 1);
            Add(_title);
            SpriteFont font = _contentManager.Load <SpriteFont>("HealthFont");

            _mainMenu = new MenuSystem(font, "", new Vector2(GameSettings.ScreenWidth / 2 - ((font.MeasureString("Play Local Multiplayer").X / 2)), _title.position.Y + 256), true);
            _mainMenu.MenuItemColor = Color.White;
            _mainMenu.AddItem("Play Local Multiplayer");
            _mainMenu.AddItem("Quit Game");
            _mainMenu.ToggleTitle();
            _mainMenu.ItemOffSetY *= 2;
            _mainMenu.Center(new Rectangle(0, 0, (int)GameSettings.ScreenWidth, (int)GameSettings.ScreenHeight), true, false);

            screenManager.Game.IsMouseVisible = false;
        }