CONTROLS ========== Player 1: W to move up S to move down D to launch the ball Player 2: Up arrow to move up Down arrow to move down Left arrow to launch the ball Variables: V to show the variables that can be changed R to reset variables back to default values Green flag to clear the scoreboard. VARIABLE FUNCTIONS =================== playSounds: Determines whether collision sound effects will play paddleDistanceFromCenter: Changes the paddle spacing between each other paddleWidth: Changes the width of the paddle. paddleHeight: Changes the height of the paddle. paddleSpeed: Changes how fast the paddle goes. ballSize: Changes the size of the ball. ballStartSpeed: Determines the speed the ball starts at when beginning a new round ballSpeedupRate: Determines how fast the ball speeds up. Set it to 0 to disable. (Note: Due to collision issues, speed will be maxed out at the paddle width.)
This is a version of Pong that does not use any sprites whatsoever. The ball and paddles are determined by variables, then drawn in where they should be. Sure, it'd be a lot easier to use sprites, but I mainly did this as a challenge to get me to think about things in a different way. I had a lot of fun programming it.