Пример #1
0
        /// <summary>
        /// Construct a new MinjieGame object.
        /// </summary>
        public MinjieGame()
        {
            graphics = new GraphicsDeviceManager(this);

            Content.RootDirectory = "Content";

            // start the audio manager
            AudioManager.Initialize(this, @"Content\Minjie.xgs", @"Content\Minjie.xwb", @"Content\Minjie.xsb");

            // initialize the screen manager
            screenManager = new ScreenManager(this);
            Components.Add(screenManager);
        }
Пример #2
0
        /// <summary>
        /// Construct a new MinjieGame object.
        /// </summary>
        public MinjieGame()
        {
            graphics = new GraphicsDeviceManager(this);
            graphics.PreferredBackBufferWidth  = 1280;
            graphics.PreferredBackBufferHeight = 720;

            Content.RootDirectory = "Content";

            // start the audio manager
            AudioManager.Initialize(this, @"Content\Minjie.xgs",
                                    @"Content\Minjie.xwb", @"Content\Minjie.xsb");

            // initialize the screen manager
            screenManager = new ScreenManager(this);
            Components.Add(screenManager);
        }