diff --git a/pages/common/pygbag.md b/pages/common/pygbag.md new file mode 100644 index 00000000000000..7aee649f011782 --- /dev/null +++ b/pages/common/pygbag.md @@ -0,0 +1,36 @@ +# pygbag + +> Package Pygame projects as WebAssembly to run in web browsers. +> More information: . + +- Package a Pygame project and start a local test server: + +`pygbag {{path/to/project_folder}}` + +- Package using Python module syntax: + +`python -m pygbag {{path/to/project_folder}}` + +- Package and build without starting the test server: + +`pygbag {{path/to/project_folder}} --build` + +- Package with a specific template: + +`pygbag {{path/to/project_folder}} --template {{template_name.tmpl}}` + +- Package and create a ZIP archive for itch.io: + +`pygbag {{path/to/project_folder}} --archive` + +- Package with optimization turned off: + +`pygbag {{path/to/project_folder}} --no_opt` + +- Specify a custom port for the test server: + +`pygbag {{path/to/project_folder}} --port {{8080}}` + +- Display help information: + +`pygbag --help`