public void StartingPosition(Court court) { Position.X = court.Width / 2 - _diameter / 2; Position.Y = court.Height / 2 - _diameter / 2; Velocity.X = court.Width / 1024.0f * 7.0f; Velocity.Y = 0.0f; }
public AIPaddle(Court court) { _height = court.Height / 8; _width = court.Width / 64; Position.X = court.Width / 64 * 3.0f * 20.0f; _yRange = new int [] {0, court.Height - _height}; _yVelocity = court.Width / 1024.0f * 0.6f; }
public Ball(Court court) { _diameter = court.Height / 48; _yRange = new int[]{ 0, court.Height - _diameter }; }