예제 #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
 }
예제 #2
0
파일: Pow.cs 프로젝트: jamcnary/YoungBatman
 public Pow(Texture2D texture)
 {
     asPow = new AnimatedSprite(texture, 0, 0, 75, 75, 4);
     asPow.IsAnimating = false;
 }
예제 #3
0
 public Batarang(Texture2D texture)
 {
     asBatarang = new AnimatedSprite(texture, 0, 0, 60, 34, 1);
     bActive = false;
     asBatarang.IsRotating = true;
 }