{"repo":"pygame-web/pygbag","free":true,"listed":false,"github":"https://github.com/pygame-web/pygbag","clone":"git clone https://github.com/pygame-web/pygbag.git","description":"python and pygame wasm for everyone ( packager + test server + simulator )","language":"Python","stars":512,"topics":["pygame","python","game-engine-2d","wasm","webassembly","gamedev","pygame-wasm","webassembly-python"],"license":"MIT","category":"game-templates","readme_excerpt":"pygbag It's ... Python WebAssembly for everyone ( packager + test server ) episode 2 Intro : https://github.com/pygame-web Community Documentation : https://pygame-web.github.io Runs python code directly in modern web browsers, including mobile versions. Quick Start: \"your.app.folder\" must contain a main.py and its loop must be async aware eg: Usage: pip3 install pygbag --user --upgrade pygbag your.app.folder Command help: pygbag --help your.app.folder Example : unlisted developper options: --git force cdn use of pygbag current git github CI build --dev change port to 8666 and use local build served on 8000 Now navigate to http://localhost:8000 with a modern internet browser. Use http://localhost:8000?-i# for getting a terminal with repl and a downsized canvas ( -i replaces http://localhost:8000#debug that did the same in earlier versions ) Url as a command line: after ? and before the # are Python arguments or KEY=VALUE env vars separated by & after the # the program name or program arguments all space \" \" separated ( coded as %20 in HTML urls ) eg to Python 3.14 to run src/test raylib.py on showroom server with only 1 rabbit and os.environ['KEY']==value call https://pygame-web.github.io/showroom/0.9.3.html?cpython3.14&-i&KEY=VALUE#src/test raylib.py%201 For pygame-script go to http://localhost:8000/test.html ( for a game folder named \"test\" with option --html ) V8 based browsers are preferred ( chromium/brave/chrome ... ) starting with 81.0.4044 ( android 4.4 ). Because the","default_branch":null,"files":null,"tree":[],"storefront":"/r/pygame-web","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/pygame-web/pygbag/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}