protected override void LoadContent() { Anim = new SpriteBatch(GraphicsDevice); Texture2D texture = Content.Load<Texture2D>("linkEdit"); animatedSprite = new AnimatedSprite(texture, 8, 10, new Vector2[] {new Vector2(0,0), new Vector2(0, 1), new Vector2(0, 2) }); }
public void LoadContent(MyGame myGame) { soundEffectJump = myGame.Content.Load<SoundEffect>("Sounds/238282__meroleroman7__robot-jump-2"); soundEffectSpell = myGame.Content.Load<SoundEffect>("Sounds/168180__speedenza__whoosh-woow-mk3"); textureBasic = myGame.Content.Load<Texture2D>("Powers/Basic/basic"); textureFire = myGame.Content.Load<Texture2D>("Powers/Fire/fire"); textureWater = myGame.Content.Load<Texture2D>("Powers/Water/water"); textureEarth = myGame.Content.Load<Texture2D>("Powers/Earth/earth"); textureAir = myGame.Content.Load<Texture2D>("Powers/Air/air"); animatedSprite = new AnimatedSprite(textureBasic, 4, 4, new Vector2[] { new Vector2(0,0)}); currentTexture = textureEarth; PlayerSize = new Rectangle(0, 0, currentTexture.Width / animatedSprite.Columns, currentTexture.Height / animatedSprite.Rows); }