Beispiel #1
0
    public void Draw()
    {
        SplashKit.FillCircle(PlayerColor, X, Y, Radius);
        c = SplashKit.CircleAt(X, Y, Radius);

        SplashKit.DrawText(Name, Color.Black, X - Radius, Y - Radius - 10);
    }
Beispiel #2
0
    public void Draw()
    {
        SplashKit.FillCircle(PlayerColor, X, Y, Radius);
        c = SplashKit.CircleAt(X, Y, Radius);

        SplashKit.DrawText(Name, Color.Black, X - _NameWidth / 2, Y - Radius - 8);
        SplashKit.DrawText(Convert.ToString(Score), Color.Black, X - 3, Y + Radius);

        //SplashKit.DrawText($"X:{X}, Y:{Y}", Color.Black, 5, 20);
    }
Beispiel #3
0
        public override bool IsAt(Point2D pt)
        {
            Point2D point = new Point2D();

            point.X = X;
            point.Y = Y;
            Circle circle = SplashKit.CircleAt(point, _radius);

            return(SplashKit.PointInCircle(pt, circle));
        }