Пример #1
0
        /// <summary>
        /// LoadContent will be called once per game and is the place to load
        /// all of your content.
        /// </summary>
        protected override void LoadContent()
        {
            // Create a new SpriteBatch, which can be used to draw textures.
            spriteBatch = new SpriteBatch(GraphicsDevice);

            Global.PlatformTexture = new Texture2D(spriteBatch.GraphicsDevice, 1, 1);
            Global.PlatformTexture.SetData(new[] { new Color(46, 139, 87) });
            Loader.Initialize(Content);
            Screen.Initialize(graphics, GraphicsDevice);
            Screen.Adjust(false);
            Global.Monogram = Loader.LoadFont("monogram_extended");
            SceneManager.AddScene("Opening", new Opening());
            SceneManager.AddScene("World", new World());
        }