Question
Write a C program to play a 2-player game of Pong, a two-dimensional sports game which simulates table tennis. Use the potentiometers to control the
"Write a C program to play a 2-player game of Pong, a two-dimensional sports game which simulates table tennis. Use the potentiometers to control the paddles moving vertically on each side of the screen. The paddles and walls reflect a ball back and forth at the correct speed and reflection angle. A point is scored when one side fails to return the ball to the other side. Show the score in real time on the LCD display. Divide the paddle into segments to change the ball's angle of return. For example, the center segments return the ball a 90 degree angle in relation to the paddle, while the outer segments return the ball at smaller angles. Make the ball accelerate the more it is returned back and forth between paddles; missing the ball resets the speed." Note: The code must be able to runn on a msp430 controller and use a hyperterminal to play the game.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started