Games:Student:Dunk Contest:Summary

From FANG

Jump to: navigation, search


media.php?f=Games-Student-Dunk_Contest.jpg

Dunk_Contest by Mike Reed and Adam Lanka

The 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

Play Dunk_Contest.





Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter

Games
Games