Need to implement the two game modes: Classical and Ping Pong
Classical Mode:
- Ball starts in the middle of the playing field
- Ball randomly moves toward player 1 or player 2, regardless of who scored last
- Direction is picked at random, or is fixed (angle of movement)
- Ball reflects from paddle based on inverting x-axis direction (but no change to y-axis)
Ping Pong Mode:
- Ball starts at the paddle
- Paddle can move with ball, to start the serve from anywhere in the y-plane of the field
- The serve switches sides every two points (starting with player 1)
- Direction of the ball is determined by the player (directional arrow)
- Ball reflects from paddle based on the section of the paddle that it hit (invert x-axis; change y-axis based on area of the paddle that got hit)
Additional rules: See: wiki
Need to implement the two game modes: Classical and Ping Pong
Classical Mode:
Ping Pong Mode:
Additional rules: See: wiki