Topics: gameplay mechanics in Unity, including tags, collisions, and triggers
Related Reading: Class notes, Unity game mechanics instructions, and Unity textbook, pages 99-102 and 283-289.
Download and import the following scripts asset package for this homework: SLU CS Assets for Unity 5.6.
Also download the guide describing how to use these collision and trigger assets and add them into your Scene: Unity game mechanics instructions.
Add some gameplay mechanics to your game, as specified below. Attempt to combine these mechanics with physical obstacles to create interesting gameplay challenges.
Try different parameterizations of the scripts for these gameplay mechanics to experiment with how that affects gameplay.
Note: For the objects you create for scoring and speed boost, you may find it beneficial to create prefab(s) for them first. This prevents you from spending extra time in adding components and scripts to each object, only requiring you to spend that time on one object of that type (which you then save as a prefab). Then you can use that prefab to quickly make as many instances of the object in the game as desired.
If you haven't already, add some sounds to the gameplay mechanics you used in the part above (part 2), including:
For this part, you may use the sound files you've already imported from the SLU CS asset package, or the book's asset package. Of course, you're welcome, and even encouraged, to use sound files from other freely available sources (e.g. see the Links menu). Unity can use any MP3, WAV, OGG, or AIFF files. Simply copy them into the Assets folder inside your Unity project directory.
Add some Audio Triggers into your scene (again, see directions in the provided guide).
For this part, you are again welcome to use the existing sound files from the SLU CS assets or the book asset packge. Though of course, you're always welcome (and encouraged) to use audio clips from external sources, as noted above.
Add some background music and/or ambient noise to your scene. You can place it on either the First Person Controller or the Terrain.
While there are some background music and ambient noise audio clips already available in the book and SLU CS asset packages, for this problem I specifically want you to find an external background music or ambient noise audio clip and add it to your scene. Again, Unity can use any MP3, WAV, AIFF, or OGG file. You simply need to copy the sound file into the desired directory/folder within your project's Assets folder.
Again, there are many websites with other freely avaialable sound files (e.g. see the Links menu). Or you may even record your own audio sounds with many freely-available audio editing tools (like Audacity).
Finally, let's make your water more "water-like", by adding an effect that makes the player feel like they're underwater when the player goes into the water, below the water plane.
While doing this manually involves adding a collider and the UnderwaterPrefab script to a water block, the latest version of the SLU CS assets package (for Unity 5.5) includes two prefabs that have this built in. You can simply drag one of them into the scene, and position it and size it as desired. You can also adjust the water density parameter as desired, to increase or decrease the visibility when underwater.