pygbag
Package Pygame projects as WebAssembly to run in web browsers. tldr-pages
On several platforms
Several platforms
Package a Pygame project and start a local test server
pygbag path/to/project_folderIdentifyPackage using Python module syntax
python -m pygbag path/to/project_folderIdentifyPackage and build without starting the test server
pygbag path/to/project_folder --buildIdentifyPackage with a specific template
pygbag path/to/project_folder --template template_name.tmplIdentifyPackage and create a ZIP archive for <https://itch.io>
pygbag path/to/project_folder --archiveIdentifyPackage with optimization turned off
pygbag path/to/project_folder --no_optIdentifySpecify a custom port for the test server
pygbag path/to/project_folder --port 8080IdentifyDisplay help
pygbag --helpIdentify