You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-7Lines changed: 4 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,6 @@ This is the CDN root used by [Pygbag](https://pypi.org/project/pygbag/).
13
13
If you like it, please [star](https://github.com/pygame-web/pygbag/stargazers) the repository!
14
14
15
15
## (Very) important points
16
-
<details><summary>expand</summary>
17
16
18
17
**<ins>Also, read the page on [making your code compatible with browser game loop](https://pygame-web.github.io/wiki/python-wasm). You will probably have to change some of your code.</ins>**
19
18
@@ -59,10 +58,10 @@ if sys.platform == "emscripten":
59
58
### Linux
60
59
61
60
- When using webusb ftdi serial emulation, use `sudo rmmod ftdi_sio` after plugging devices.
62
-
</details>
61
+
62
+
63
63
64
64
## Templates
65
-
<details><summary>expand</summary>
66
65
67
66
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.
68
67
@@ -91,8 +90,6 @@ Useful .gitignore additions:
91
90
But there are templates to customize runtime startup for 2D and 3D, see [templates](/wiki/pygbag/#templates)
92
91
93
92
94
-
</details>
95
-
96
93
[controlling pygbag packing and options from pygbag.ini](/wiki/pygbag-configuration)
97
94
98
95
@@ -108,7 +105,8 @@ But there are templates to customize runtime startup for 2D and 3D, see [templat
When importing **non-stdlib** packages (for example, numpy or matplotlib), you must put their import statements at top of `main.py`. You should also add a metadata header as specified by [PEP 723](https://peps.python.org/pep-0723/), for example:
111
-
```
108
+
109
+
```py
112
110
# /// script
113
111
# dependencies = [
114
112
# "six",
@@ -135,7 +133,6 @@ When importing **non-stdlib** packages (for example, numpy or matplotlib), you m
135
133
136
134
There's number of command line options : read Pygbag's [project description](https://pypi.org/project/pygbag/) for a more detailed overview.
0 commit comments