示例#1
0
            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;
            }
示例#2
0
 public void Draw(DodgerX GameObject)
 {
     GameObject.spriteBatch.Draw(Texture, new Vector2(X - Texture.Width / 2, Y - Texture.Height / 2), Color.White);
 }