CSE 490s Lab 6: Unity 3D- StressBall and sound
Due: Monday, Nov. 14, 9 p.m.
In this lab we'll explore the Unity 3D editor, and add our own sound to a simple scene using C#.
On line documentation, including manuals, tutorials, and video tutorials, along with sample game projects.
Extensive documentation is also included under "Help" in Unity3D:
Video tutorial on Unity sound.
Overview: Writing Scripts in C#
- Download StressBall.unitypackage to your computer
- Open Unity 3
- Make a New Empty Project
- Under Assets->Import Package->Custom Package... select StressBall.unitypackage and import all parts
- Save your scene as StressBall
- launch it from Window -> Pixelplacement- > StressBall menu in Unity.
- Toss the ball. This is actually a window in the editor, not a full game.
Add sound to StressBall:
- Synthesize a nice "boing" sound in PD and save the output as a sample file in a Unity-compatible format.
- Trigger the sound when the ball bounces. Yes, StressBall is scripted in C#.
- 1) Make the boing length and volume proportional to the height of the ball's fall.
- 2) Add another sound for side-wall shots. Higher on the wall, higher pitch.
In Unity, under Assets->Export Package make a full project of your enhanced version. Call it (yourlastname)StressBall.unitypackage.
Email your custom PD patch file(s) and your package to email@example.com. KEEP A COPY!!
Thanks to PixelPlacement for StressBall.