Exemplo n.º 1
0
        protected override void LoadContent()
        {
            spriteBatch  = new SpriteBatch(GraphicsDevice);
            TexturaFondo = Content.Load <Texture2D>("Fondo");
            fondo        = new Fondo(GraphicsDevice, TexturaFondo);
            estatico.Load(Content, "Sprite13");
            avanzar.Load(Content, "Sprite4");
            retroceder.Load(Content, "Sprite4");
            saltar.Load(Content, "Sprite10");
            correr.Load(Content, "Sprite8");

            //spritePosicion.X = graphics.GraphicsDevice.Viewport.Width / 2;
            //spritePosicion.Y = graphics.GraphicsDevice.Viewport.Height;
        }
Exemplo n.º 2
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);

            TexturaFondo = Content.Load <Texture2D>("Fondo");
            fondo        = new Fondo(GraphicsDevice, TexturaFondo);
            //d = Content.Load<Texture2D>("Sprite4");
            //SpriteTexture.Load(Content, "Sprite11");
            //girar.Load(Content, "Sprite11");
            avanzar.Load(Content, "Sprite4");
            //izquierda.Load(Content, "Sprite5");
            saltar.Load(Content, "Sprite10");
            correr.Load(Content, "Sprite8");
            // TODO: use this.Content to load your game content here
        }