better-machine-gun-audio #17
Loading…
Reference in a new issue
No description provided.
Delete branch "better-machine-gun-audio"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Changed the audio manager such that it no longer plays sounds in "waves". Previously, the sound manager would manage voices on a pure round robin basis. The determinism of round robin-ing on a fixed set of voices would cause a period effect on the voices, and would make the sounds essentially play in waves. Now, the we either pick an empty voice slot, or pick the voice with the least time remaining on its recording, and evict that one, to put a new sound in the pool. I found the wave effect became much less annoying on the machine gun turrets.
Also tuned some numbers on the machine gun - it fires 5 tracers per attack, timed with the sound, but the attack is only one event. It also does more damage. There's downtime between attacks, too, to better sell the "burst of fire" effect.