Daniel Passmore

CMPS161 final project

Miniature golf park

 

Purpose

The purpose of this project was to create a miniature golf game in a 3D environment.  In my version of miniature golf the user is

given 1 shot per hole to get it in the hole.  I created a 12 hole course.  All holes have been tested and it is possible to get it in the

hole in 1 shot.  The player controls the direction and power to hit the ball and also has the choice to jump to any hole or play through

them from beginning to end. 

 

Goals

The goals for my project are as follow:

 

- create a nice looking environment which simulates a miniature golf course.  For each hole a set of walls was constructed , along with the

green, and a hole, pin, and flag. 

 

- implement an aiming and power system to represent a putter.  The user is able to visualize which direction they are aiming with a line that is

drawn to indicate aim direction as seen in the screenshots.

 

- implement accurate collision detection and physics so that the ball reflects off any wall surface and bounces in the proper direction.

 

- implement gravity/drag so that the ball naturally comes to a stop instead of bouncing around inside the course forever.

 

- have multiple holes modeled and the physics worked out for all of them.  I was able to create 12 holes, essentially a front 6 and back 6.

 

The Controls

 

The game is very easy for the user to control.  Upon loading, the game starts on hole 1.  The user can either start there or select

any of the 12 holes to play on.  The user chooses a direction and power and presses the 'Swing' button.  If the ball comes to a rest

and never went in the hole, then the ball is reset and the user gets another try.  If the user gets the ball in the hole, it will advance him

to the next course.