TheCherno / Sparky

Cross-Platform High Performance 2D/3D game engine for people like me who like to write code.
Apache License 2.0
1.09k stars 222 forks source link

Added basic 3D audio capability #113

Closed cappah closed 8 years ago

cappah commented 8 years ago

Audio pans between left and right speakers based on the direction the camera is facing and the angle the object emitting sound is to the camera.

Audio gains from max to min based on the distance between the object emitting sound and the camera's position within a set radius.