A math game made with Pygame and compiled for the browser using Pygbag.
-
Install pygbag:
pip install pygbag
-
Build the game:
pygbag --build main.py
-
Go into the
build/webfolder. This is your web-ready site. -
Upload contents of
build/web/to GitHub. -
Enable GitHub Pages in your repo settings (under "Pages", choose
mainbranch and/ (root)). -
Embed on Google Sites using:
<iframe src="https://yourusername.github.io/your-repo-name/" width="100%" height="600" style="border:none;"></iframe>