Pygame On Web
Docs
Tool:
- PyGbag
- Python
- Pygame
- Asyncio
Work
cd
to the folder containing your folder(game folder).- use:
pygbag --archive (game folder) or python -m pygbag --archive (game folder)
Result
web.zip
archive(upload in itch io or github.io)
Catch
- use .ogg files or others,never use .mp3 or .wav
- use .png/.jpg files for images dont use .bmp etc.
- use main file as
main.py