public Enemy(Texture2D texture, int X, int Y, int Frame) { asSprite = new AnimatedSprite(texture, 0, 0, 160, 178, 20); asSprite.IsAnimating = false; iFrame = Frame; asSprite.Frame = iFrame; //pass the frame from constructor to the animated sprite }
public Pow(Texture2D texture) { asPow = new AnimatedSprite(texture, 0, 0, 75, 75, 4); asPow.IsAnimating = false; }
public Batarang(Texture2D texture) { asBatarang = new AnimatedSprite(texture, 0, 0, 60, 34, 1); bActive = false; asBatarang.IsRotating = true; }