Asteroids.Classes.AsteroidsIntro.Load C# (CSharp) Method

Load() public method

public Load ( Microsoft.Xna.Framework.Content.ContentManager content, GraphicsDeviceManager graphics ) : void
content Microsoft.Xna.Framework.Content.ContentManager
graphics GraphicsDeviceManager
return void
        public void Load(ContentManager content, GraphicsDeviceManager graphics)
        {
            fontType = content.Load<SpriteFont>("Courier New");
            //Text
            fontOriginTitle.Y = -graphics.GraphicsDevice.Viewport.Height / 2 - 20;
            fontOriginTitle.X = graphics.GraphicsDevice.Viewport.Width / 3;

            fontOrigin.Y = -graphics.GraphicsDevice.Viewport.Height / 2 - 40;
            fontOrigin.X = graphics.GraphicsDevice.Viewport.Width / 2.6f;
            fontPosTitle = new Vector2(graphics.GraphicsDevice.Viewport.Width / 2 - 75,
                graphics.GraphicsDevice.Viewport.Height / 2);
            fontPos = new Vector2(graphics.GraphicsDevice.Viewport.Width / 2 - 30,
                graphics.GraphicsDevice.Viewport.Height / 2);
        }