samtupy / nvgt

The Nonvisual Gaming Toolkit
https://nvgt.gg
Other
51 stars 31 forks source link

Add hrtf_mode to sound_pool. #37

Closed masonasons closed 4 months ago

masonasons commented 4 months ago

When this is set to 0, the positioning works as normal, E.G. x is left/right, y is back/forward, and Z is up/down. When it's set to 1, y is now up/down and Z is back/forward. This is useful for 2D platforming games for example, or games where y is up/down and Z is back/forward rather than the reverse.

deathvelt commented 4 months ago

I'm curious if you would consider making the hrtf mode's name more descriptive, something like y_is_elevation? That name fits better and also doesn't have as much chance of accidentally tripping up new programmers.

masonasons commented 4 months ago

Done

TheQuinbox commented 4 months ago

Looks good to me, and have tested and it appears to work.