rogueworld icon indicating copy to clipboard operation
rogueworld copied to clipboard

Spatial audio

Open Arcanorum opened this issue 5 years ago • 0 comments

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.

Arcanorum avatar Nov 29 '20 00:11 Arcanorum