public BoomerangEnemyProjectile(Texture2D inTexture, Vector2 position, Vector2 velocity, int frameOffSet, GoriyaEnemy inGoriya) { texture = inTexture; X = (int)position.X; Y = (int)position.Y; xVel = (int)velocity.X; yVel = (int)velocity.Y; turned = false; initialX = X; initialY = Y; initialXVel = xVel; initialYVel = yVel; frames.AddLast(new Rectangle(0, 0, 8, 16)); frames.AddLast(new Rectangle(9, 0, 8, 16)); frames.AddLast(new Rectangle(18, 0, 8, 16)); frames.AddLast(new Rectangle(27, 0, 8, 16)); frames.AddLast(new Rectangle(36, 0, 8, 16)); frames.AddLast(new Rectangle(45, 0, 8, 16)); frames.AddLast(new Rectangle(54, 0, 8, 16)); frames.AddLast(new Rectangle(63, 0, 8, 16)); currentFrame = frames.First; goriya = inGoriya; for (int i = 0; i < frameOffSet; i++) { currentFrame = currentFrame.Next; } frameWait = 0; }
public GoriyaWD(Texture2D inText, Texture2D projText, GoriyaEnemy inGoriya) { texture = inText; projTexture = projText; goriya = inGoriya; destRect = new Rectangle(goriya.X, goriya.Y, width, height); }