public Bullet(Texture2D texture) { asRight = new AnimatedSprite(texture, 0, 0, 16, 1, 1); asRight.IsAnimating = false; asLeft = new AnimatedSprite(texture, 16, 0, 16, 1, 1); asLeft.IsAnimating = false; iFacing = 0; iX = 0; iY = 0; bActive = false; }
public Explosion(Texture2D texture, int X, int Y, int W, int H, int Frames) { asSprite = new AnimatedSprite(texture, X, Y, W, H, Frames); asSprite.FrameLength = 0.05f; }
public Enemy(Texture2D texture, int X, int Y, int W, int H, int Frames) { asSprite = new AnimatedSprite(texture, X, Y, W, H, Frames); }
public Player(Texture2D texture) { asSprite = new AnimatedSprite(texture, 0, 0, 72, 16, 4); asSprite.IsAnimating = false; }