V1/Toolbox.NETMF.Hardware.LcdBoost.Test/Toolbox.NETMF.Hardware.LcdBoost.Test/DemoPong.cs
/// <summary>
/// Init for a new incoming ball
/// </summary>
Init for a new incoming ball
Init for a new incoming ball
public void NewBall()
            {
                int n = _rnd.Next(10000);
                _elem_ball.X = 2 + n % 12;
                _elem_ball.Y = 0;
                this.BallSpeed.DX = n < 5000 ? -1 : 1;
                this.BallSpeed.DY = 1;
                _elem_paddles_left.Text = "_" + this.PaddlesLeft.ToString() + "_";
            }
public void NewBall ( ) { int n = _rnd . Next ( 10000 ) ; _elem_ball . X = 2 + n % 12 ; _elem_ball . Y = 0 ; this . BallSpeed . DX = n < 5000 ? - 1 : 1 ; this . BallSpeed . DY = 1 ; _elem_paddles_left . Text = " " + this . PaddlesLeft . ToString ( ) + " " ; }
Init for a new incoming ball
Init for a new incoming ball
//gets the new ball position //gets the new ball speed //update the paddles left box