public void PerformFrame(DodgerX gameobject,Player playerobject) { CurrentAngle += AngleSpeed; X = (float)(Math.Cos(CurrentAngle) * Radius) + playerobject.Position.X; Y = (float)(Math.Sin(CurrentAngle) * Radius) + playerobject.Position.Y; }
public void Draw(DodgerX GameObject) { GameObject.spriteBatch.Draw(Texture, new Vector2(X - Texture.Width / 2, Y - Texture.Height / 2), Color.White); }