Sean-Nishi / M1Wengine

A action-adventure game developed with Python 3.11.1 and pygame. Complete missions before timer expires.
3 stars 0 forks source link

Look into cleaning up amount of noise when states change #335

Open Sean-Nishi opened 8 months ago

Sean-Nishi commented 8 months ago

https://www.pygame.org/docs/ref/music.html#pygame.mixer.music.set_volume

Use set_volume() to change volume. Further away entities make less noise then those closer to the player. Define update method for Entity. Will need to be called from children's update() method (super.upate()) Within Entity, need update method that reduces sound effect volume based on distance from player.

Hypotenuse/distance away method already exists. Needs to pull get_distance() into Entity from character.