CS121 Project 2: Version
Golf Game
In this assignment you'll build a one-hole miniature golf game
using the physics engine you've developed over the last few weeks.
-
Ball and club: Here is a little program that includes the ball and club:
main.cpp, bmp.h, ,
club.bmp, ball.bmp. You also need to
include the Tuple code.
When the ball comes to rest you should reposition the club appropriately.
The user should be able to rotate the club about the ball to line up
a shot and swing the club to hit the ball. The user should be able to
control how hard the ball is hit.
-
Course: The only requirements for the course is that it contain a ramp.
The course should be specified in an input file that your program reads.
-
Tee: You should have a fixed location on the course where your ball is
initially placed.
-
Hole: You should have a "hole" with a flag. When the ball rolls over the
hole it should drop in.
-
Camera: The camera should keep the ball in view when it is moving
and provide an appropriate viewpoint when the user is lining up a shot.
-
Scoring: You should provide feedback on the number of strokes used whenever
the user hits the ball.
-
Tuning: Your game should be challenging but winnable. The ball should
move in a realistic way. The club should be easy to handle.
In addition to the golf game you should document your project
including at least the folling linked from your wiki:
-
Planning diagrams.
-
Individual logs.
-
Class and sequence diagrams for your final design.
-
Well-commented code.
-
A users' guide.
-
A final report that includes a description of your design,
description of your test plan and its results,
any known bugs, and future enhancements.