-
Notifications
You must be signed in to change notification settings - Fork 1
Sound effects
Ian edited this page Sep 11, 2024
·
1 revision
Playing sound effects the normal way (using getAsset(...).play()
) will play the sound at the same volume every time, regardless of the sound volume set by the user, specified in UserSettings
.
To fix this, the ResourceService
has been extended to add a new method to play a sound at the user-specified volume:
playSound(String soundName)
No sound is played when the mute setting is on.
This method allows any team who wants to play a sound effect to do so without worrying about user settings, which is currently mostly the responsibility of the menus team.
Any sounds played must be loaded first.
Design Choices
Utilities
Animals
Menus/screens
Character
- Character Animations
- Character's Inventory On Display
- Character's Inventory System
- Character's HealthBar
- Character's Interaction with Items
- Character achievements
- Saving Character
- Player-(and-other-NPC)-invincibility-frames
- Player Factory
- Scoring System
- Test Plan for Inventory System
- Test Plan for Player's Interaction with Items
- Test Plan for Player's Inventory Display
- Test Plan for Saving Character State
- Test Plan for Scoring System
Map
Weapon
- Weapon Overview
- Weapon Types
- Weapon Structure
- Weapon Stats Display
- Testing Plan for Weapon Factory
- Testing Plan for Firing Controller Component
- Testing Plan for Position Tracker Component
- Testing Plan for Weapon Animation Controller component
- Testing Plan for Concrete Melee Weapon class
- Testing Plan for Concrete Ranged Weapon class