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

Add sound effects to player #338

Open Sean-Nishi opened 8 months ago

Sean-Nishi commented 8 months ago

load in sounds in init(), play sound when interaction detected Interactions are: Eat, Destroy, Consume play passive sound while walking

Implementation: method to play_current_sound() that would play the correct sound based on current interaction. Called within collision_handler(). Within Player, any sound played will be on_collision with another entity's hitbox.