Exemple #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.
            MenuPause.LoadContent(this.Content);
            spikesTrap.LoadContent(this.Content);
            spriteBatch    = new SpriteBatch(GraphicsDevice);
            ecir.Texture   = Content.Load <Texture2D>("Ecir");
            zombie.Texture = Content.Load <Texture2D>("Zombie");
            ecirBarLife    = new Texture2D(GraphicsDevice, 1, 1, false, SurfaceFormat.Color);//Ecir bar life
            ecirBarLife.SetData(new Color[] { Color.Red });
            zombieBarLife = new Texture2D(GraphicsDevice, 1, 1, false, SurfaceFormat.Color);
            zombieBarLife.SetData(new Color[] { Color.Red });
            terrain1.LoadContent(this.Content);
            skeleton.LoadContent(this.Content);
            hollowKnight.LoadContent(this.Content);
            stairs.LoadContent(this.Content);
            ogre.LoadContent(this.Content);
            fireBall.LoadContent(this.Content);

            // TODO: use this.Content to load your game content here
        }