Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

To help game players enhance their ambidextrous hand-eye coordination, you need to build a mini racket game. Use buttons as the left-hand and right-hand rackets.

image text in transcribed
To help game players enhance their ambidextrous hand-eye coordination, you need to build a mini racket game. Use buttons as the left-hand and right-hand rackets. The game should have eight ball positions between the rackets. Each ball position must be shown using an LED and the set of positions must form a horizontal line of LEDs. In your implementation, add labels to indicate the positions of the rackets. Upon reset, the ball should start on one end and move toward the opposite end. It must take about 500ms to cover the space between rackets. To create the illusion of motion and make each ball position visible, you will need to implement a delay to show each ball position before moving it to the next one. Once the ball reaches a position in front of a racket, give the player about 5ms to hit the ball by pushing the button next to it. If the player hits the ball, flash a green LED. Otherwise, flash a red LED. The ball must start moving in the opposite direction regardless of the player actions after the hit delay. Make sure players do not cheat by holding the buttons down all the time. Buttons must be pressed only during the hit time. Design and build your game using the MSP432 Launchpad. Write your game control program in C language and document it with informative comments. (Hint: you can create an approximate time delay with a counting loop, but you will have to adjust the counting limit to produce the delays you need.) To help game players enhance their ambidextrous hand-eye coordination, you need to build a mini racket game. Use buttons as the left-hand and right-hand rackets. The game should have eight ball positions between the rackets. Each ball position must be shown using an LED and the set of positions must form a horizontal line of LEDs. In your implementation, add labels to indicate the positions of the rackets. Upon reset, the ball should start on one end and move toward the opposite end. It must take about 500ms to cover the space between rackets. To create the illusion of motion and make each ball position visible, you will need to implement a delay to show each ball position before moving it to the next one. Once the ball reaches a position in front of a racket, give the player about 5ms to hit the ball by pushing the button next to it. If the player hits the ball, flash a green LED. Otherwise, flash a red LED. The ball must start moving in the opposite direction regardless of the player actions after the hit delay. Make sure players do not cheat by holding the buttons down all the time. Buttons must be pressed only during the hit time. Design and build your game using the MSP432 Launchpad. Write your game control program in C language and document it with informative comments. (Hint: you can create an approximate time delay with a counting loop, but you will have to adjust the counting limit to produce the delays you need.)

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

Database And Expert Systems Applications 31st International Conference Dexa 2020 Bratislava Slovakia September 14 17 2020 Proceedings Part 1 Lncs 12391

Authors: Sven Hartmann ,Josef Kung ,Gabriele Kotsis ,A Min Tjoa ,Ismail Khalil

1st Edition

303059002X, 978-3030590024

More Books

Students also viewed these Databases questions