8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1aad1bd commit 8e94159Copy full SHA for 8e94159
docs/user-guide/pygame-ce.md
@@ -40,6 +40,17 @@ on the page.
40
A config attribute can be specified to add extra packages but right now that's
41
all it can do.
42
43
+!!! Info
44
+
45
+ Sometimes you need to gather text based user input when starting a game.
46
+ The usual way to do this is via the builtin `input` function.
47
48
+ Because PyGame-CE **only runs on the main thread**, the only way to block
49
+ your code while it waits for user `input` is to use a
50
+ [JavaScript prompt](https://developer.mozilla.org/en-US/docs/Web/API/Window/prompt)
51
+ instead of input typed in via a terminal. PyScript handles this
52
+ automatically for you if you use the `input` function.
53
54
This is an experiment, but:
55
56
* It is possible to use regular PyScript to load the pygame-ce package and use
0 commit comments