Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions

Question

Describe the patterns of business communication.

Answered: 1 week ago

Question

3. Provide two explanations for the effects of mass media

Answered: 1 week ago