Games:Student:Dunk Contest:Summary
From FANG
Dunk_Contest by Mike Reed and Adam LankaThe game starts by first selecting a difficulty to play; easy (Pres. Brodhead), medium (Prof. Ramm), and hard (Julius Erving aka Dr. J). After selecting a difficulty, a dunk combination of arrow directions will show on the screen, you have a limited time to look and try to remember this combination for use in the future. When the time is up, you move to the beginning of what we call the 'dunk phase.' In the first phase, you are prompted to click the mouse on the power bar and stop the power ball in one of the different colored areas before the timer expires, or you lose. Next you move to the phase where you click the directional arrow buttons; the best dunk will be the combination of directions that was shown, and is more difficult to perform. After this, you move to the final phase where you click the mouse on the slam bar to stop the slam ball in the central region of the bar. With the dunk phase now complete, the animation is performed after receiving the input from the power bar, directional arrow buttons, and the slam bar. Score is then generated based on the power, difficulty and success of the dunk, then compared to a randomly generated opponent's score (as levels increase, chance to generate higher numbers more frequently). If you receive a higher score than your opponent, you win, and the game ends. Download the source code: Dunk_Contest.jar Course taken: CPS004: Java for Video Games at Duke University |
- This page was last modified on 19 September 2009, at 19:55.
- This page has been accessed 268 times.
- Privacy policy
- About FANG
- Disclaimers
- Powered by MediaWiki!












