Pygame, Replit package, how to play audio?

Question: With Pygame, i want to play some sounds, but the pygame.mixer dousnt work and the Replit package also doesnt work in my loop. Can somebody see my code in my game, and help to find the solution? Thx :slight_smile:

Current behavior: The sounds dont work, the shot sound freeze the loop.

Desired behavior I want a shot and a reload sound. The sound files has been uploaded.

Repl link: https://replit.com/@ecsitomi/Chicken-Hunt

code snippet

It is already known that sound reproduction in Replit does not work well.

This post may help you: How to add audio to replit - #18 by IanAtCSTeach ?

3 Likes