コード例 #1
0
 public Form1()
 {
     InitializeComponent();
     t.Interval = 30;
     t.Enabled  = true;
     t.Tick    += MainLoop;
     right.setX(770);
     right.setY(250);
     left.setX(30);
     left.setY(250);
     pongBall.setXVelocity(randomObject.Next(0, pongBall.getMaxSpeed() * 2) - pongBall.getMaxSpeed());
     pongBall.setYVelocity(randomObject.Next(0, pongBall.getMaxSpeed() * 2) - pongBall.getMaxSpeed());
     pongBall.setXVelocity(-10);
     pongBall.setYVelocity(0);
 }