Sound Project: The Dark Attic
Over the last two weeks I have had the pleasure of working with my classmate Daniel Johnston on a P5.js project that makes use of sound. We were inspired by the experience of being in the dark, with the idea being to navigate a space based entirely on sound.
Collaborating on code has been a great way to learn from one another and has shown for me the importance of clear comments in code and good communication.
While I would have loved to spend more time developing this project creatively it was easy to get stuck on other aspects like working out the player navigation code. Of special interest to me was working out functions to spatialize the sound, such as having player position and rotation affect volume and stereo panning for the sounds of objects they are near.
In its current incarnation the project loads a number of objects using a class function with random positions that are invisible to the player. As the player navigates around the screen they trigger the sounds of these objects to play as they come into a predefined range.
With more time I would enjoy developing this further into a proper game, perhaps making the goal to collect objects in the space.
The code is available here and embedded P5.js sketch below.