Ejemplo n.º 1
0
 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
 }
Ejemplo n.º 2
0
 public Pow(Texture2D texture)
 {
     asPow = new AnimatedSprite(texture, 0, 0, 75, 75, 4);
     asPow.IsAnimating = false;
 }
Ejemplo n.º 3
0
 public Batarang(Texture2D texture)
 {
     asBatarang = new AnimatedSprite(texture, 0, 0, 60, 34, 1);
     bActive = false;
     asBatarang.IsRotating = true;
 }