CDN root used by pygbag
This software does not track usage at all, even for statistics purpose so if you like it : please do not forget to star it !
sfx sound patch need ogg format ( if linux+ffmpeg conversion is automatic, on windows you can use audacity ).
Adapt your code this way if you still want wav format on desktop :
if sys.platform == "emscripten":
snd = pygame.mixer.Sound("sound.ogg")
else:
snd = pygame.mixer.Sound("sound.wav") # or .WAV
(for testing, may not always work since they use daily/weekly devel version)
Please ! use the tag pygame-wasm for your projects hosted on Github and also add a favicon.png icon 32x32 next to your game main.py, so it is picked up by default.
( expected to be stable )
pygame tech demo PyCon DE & PyData Berlin 2022
Python Wasm explained by core dev Christian Heimes (youtube video)
Hello from the pygame community.