From e66314e4c6cfc8781ed48b1a621c145a10f7064d Mon Sep 17 00:00:00 2001 From: "Paul m. p. Peny" Date: Wed, 9 Oct 2024 03:40:59 +0200 Subject: [PATCH] Update README.md --- README.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index fbb3df9..ecd168e 100644 --- a/README.md +++ b/README.md @@ -61,9 +61,10 @@ if sys.platform == "emscripten": - When using webusb ftdi serial emulation, use `sudo rmmod ftdi_sio` after plugging devices. -## Template +## Templates
expand -There is actually none, because Python-WASM is just a web-friendly version of CPython REPL with [some added facilities](https://discuss.python.org/t/status-of-wasm-in-cpythons-main-branch/15542/12?u=pmp-p). Most desktop code will run (and continue to run) with only a few changes. + +There is actually nothing specific for projects except naming entry point main.py, because Python-WASM is just a web-friendly version of CPython REPL with [some added facilities](https://discuss.python.org/t/status-of-wasm-in-cpythons-main-branch/15542/12?u=pmp-p). Most desktop code will run (and continue to run) with only a few changes. Basic structure of a game (available [here](https://github.com/pygame-web/pygbag/tree/main/test)): ``` @@ -87,10 +88,14 @@ Useful .gitignore additions: /build /dist ``` +But there are templates to customize runtime startup for 2D and 3D, see [templates](/wiki/pygbag/#templates) + -[controlling pygbag packing and options from pygbag.ini](/wiki/pygbag-configuration)
+[controlling pygbag packing and options from pygbag.ini](/wiki/pygbag-configuration) + + ## Coding - [General Python-WASM](/wiki/python-wasm/)