Quick Test I made to convert distance to loudness; the closer you get to the source of the sound (the boombox in the corner), the louder it gets! Arrow keys to move the blue circle (you /player). Feel free to use any of the code, just make sure to credit me!
Song: We'll meet again - by Thefatrat