Check out some demos before you start!
- Visit this page on how to use Pygbag to make web games with Python.
- Visit this page for useful Pygbag code snippets and a Pygbag FAQ.
- How to enter debug mode
- While working, you can access the simulator of the web loop by replacing
import asyncio
byimport pygbag.aio as asyncio
at top of main.py and run the program from the folder containing it. - TODO: Android remote debugging via chromium browsers series.
- TODO: Universal remote debugging via IRC Client or websocket using pygbag.net.
- Pygbag-script (WIP)
- REPL
- CPython test suite (WIP)
- Games using Python-WASM (Expected to be stable)
- Panda3D demos (Experimental)
These are provided for testing purposes only, and might not always work since they use development versions of Pygbag.
Source code for these games can be found here. You can tag your Github repositories with [pygame-wasm].
The code is read-only,right-click examples links to open in a new window.
- Overview of internals
- Initial discussion
- Discussion at pygame-ce repo
- Python-WASM explained by core dev Christian Heimes (video)
Python WebAssembly at PyCon FR 2023 (in French): Pour quoi, pour qui et comment
- Pyodide/Pyscript ( py3.12+ not suitable for heavy games, music or 3D )
- Micropython/Pyscript ( py3.4, no pygame, but pysdl2/javascript libraries possible )
- PocketPy, not any Python spec compliant but sometimes close. Can make Terminal/raylib based games.
Thanks for reading and supporting pygame-ce and pygbag. These tools could not have existed without your support.