Пример #1
0
        public override void UpdateShape()
        {
            int roundRadius = Texture.Height / 2;

            shape = new PongShapes.Rectangle(
                new Coordinate((int)Position.X + roundRadius, (int)Position.Y),
                Texture.Width, Texture.Height, 0);
        }
Пример #2
0
 public override void UpdateShape()
 {
     int roundRadius = Texture.Height / 2;
     shape = new PongShapes.Rectangle(
         new Coordinate((int)Position.X + roundRadius, (int)Position.Y),
         Texture.Width, Texture.Height, 0);
 }