Exemplo n.º 1
0
 /// <summary>Initializes a new instance of the <see cref="HelpManager" /> class.</summary>
 /// <param name="input">The input manager.</param>
 /// <param name="font">The font manager.</param>
 /// <param name="helpView">The help view start behavior.</param>
 public HelpManager(InputManager input, FontManager font, HelpViewTypes helpView = HelpViewTypes.Header)
 {
     this.input = input;
     this.HelpView = helpView;
     this.font = font;
     this.positionStep = new Vector2(0, this.font.Height);
 }
        /// <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.
            this.spriteBatch = new SpriteBatch(this.graphics.GraphicsDevice);

            // Initialize font
            this.font = new FontManager(this.Content, this.spriteBatch);

            // Initialize help
            this.help = new HelpManager(this.input, this.font);

            // Load background
            this.background = new Background(this.Content, this.GraphicsDevice, this.spriteBatch);

            // Load shockwave effect
            this.shockwave = new Shockwave(this.Content, this.GraphicsDevice, this.spriteBatch, this.input);

            // Load image distortion effect
            this.imageDistortion = new ImageDistortion(this.Content, this.GraphicsDevice, this.spriteBatch, this.input);

            // Load sine wave effect
            this.sineWaveDistortion = new SineWaveDistortion(this.Content, this.GraphicsDevice, this.spriteBatch, this.input);
        }