rogueworld
rogueworld copied to clipboard
Spatial audio
Task description
Need to figure out and implement a way to associate playing certain sounds with an entity on screen, and adjust the volume to be appropriate for the distance from the player.
References/notes
Some discussion around the topic. https://phaser.discourse.group/t/sound-in-particular-place/2547/2
Acceptance criteria
- A given sound can be associated with an entity on screen.
- If the player moves towards/away from that entity, the volume of that sound will increase/decrease based on distance.
- If the entity moves towards/away from the player, the volume of that sound will increase/decrease based on distance.