protected override void LoadContent() { _spriteBatch = new SpriteBatch(GraphicsDevice); _tile = Content.Load<Texture2D>("StoneBlock"); _marioSprite = new AnimatedSprite(4, 4, 48, 65, 60, Content.Load<Texture2D>("mario2")); }
protected override void LoadContent() { _spriteBatch = new SpriteBatch(GraphicsDevice); _tile = Content.Load<Texture2D>("StoneBlock"); // Todo: // Create a new AnimatedSprite instance, and assign it to the _marioSprite field. The sprite should have the // following properties: // // 4 frames across // 4 frames down // a frame width of 48 // a frame height of 65 // it should change frames a number of times a second (play with the number) // it should use the mario2 texture _marioSprite = new AnimatedSprite(4,4,48,65,70, Content.Load<Texture2D>("mario2")); }