Skip to content

Add walking/running on rocks sound #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Apr 5, 2023
Merged

Conversation

nucleartide
Copy link
Owner

@nucleartide nucleartide commented Apr 4, 2023

Process

  1. Find a sound effect from freesound.org.
  2. Check the sound's license to ensure that I can use it.
  3. Import sound into Sounds/ folder.
  4. Update Sounds/Attribution.md doc.
  5. Expose new reference in the AllTheSounds ScriptableObject, and hook up the AudioClip. Alternatively, if you want to play the sound as its own AudioSource, then create the AudioSource and hook up the AudioClip.
  6. Add test methods to SoundManager (or a separate script) that play the sound. If the audio clip is split into many sections, identify sections within the audio clip to play with the AudioClipSection class, then use AudioSourceHelpers.PlaySoundInterval.
  7. Expose game event for when you want the sound to be played. For example, the PlayerAnimationEvents script exposes player animation events to C#.
  8. Make SoundManager (or your separate script) listen to the new game event, and call the corresponding play-sound method when the event occurs.
  9. Update readme with pull request link.

@nucleartide nucleartide marked this pull request as ready for review April 5, 2023 01:43
@nucleartide nucleartide merged commit 8760856 into master Apr 5, 2023
@nucleartide nucleartide deleted the jason/more-sounds-omg branch April 5, 2023 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant