Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
pmp-p authored Oct 9, 2024
1 parent b0ed878 commit e66314e
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,10 @@ if sys.platform == "emscripten":
- When using webusb ftdi serial emulation, use `sudo rmmod ftdi_sio` after plugging devices.
</details>

## Template
## Templates
<details><summary>expand</summary>
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)):
```
Expand All @@ -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)
</details>

[controlling pygbag packing and options from pygbag.ini](/wiki/pygbag-configuration)


## Coding

- [General Python-WASM](/wiki/python-wasm/)
Expand Down

0 comments on commit e66314e

Please sign in to comment.