Skip to content

Commit c7fbe44

Browse files
committed
Added an instruction
1 parent 23a695d commit c7fbe44

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

docs/pyxel-web-en.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ https://kitao.github.io/pyxel/wasm/launcher/?<Command>=<GitHub username>.<Reposi
2727

2828
There are three available commands.
2929

30-
- `run`: Execute a Python script (importing other files or directories is not possible)
30+
- `run`: Execute a Python script
3131
- `play`: Run a Pyxel app
3232
- `edit`: Launch Pyxel Editor
3333

@@ -43,6 +43,8 @@ If you want to run a `shooter.pyxapp` located in the `dist/games` directory, the
4343
https://kitao.github.io/pyxel/wasm/launcher/?play=taro.my_repo.dist.games.shooter
4444
```
4545

46+
If an app is split into multiple files, running it with the `run` command may take longer to load. In that case, it is recommended to convert it into a Pyxel application file (.pyxapp) and run it with the `play` command.
47+
4648
The `run` and `play` commands can have additional attributes such as `gamepad` to enable a virtual gamepad and `packages` to specify additional packages.
4749

4850
For example, if you want to enable the virtual gamepad and use NumPy and Pandas as additional packages, the URL would be:

docs/pyxel-web-ja.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ https://kitao.github.io/pyxel/wasm/launcher/?<コマンド>=<githubのユーザ
2727

2828
コマンドには次の3つが指定できます。
2929

30-
- `run`: Python スクリプトを実行する (別ファイルやディレクトリのインポートは不可)
30+
- `run`: Python スクリプトを実行する
3131
- `play`: Pyxel アプリを実行する
3232
- `edit`: Pyxel Editor を起動する
3333

@@ -43,6 +43,8 @@ https://kitao.github.io/pyxel/wasm/launcher/?run=taro.my_repo.src.scenes.title
4343
https://kitao.github.io/pyxel/wasm/launcher/?play=taro.my_repo.dist.games.shooter
4444
```
4545

46+
複数のファイルに分かれたアプリを`run`コマンドで実行すると読み込みに時間がかかるため、その場合は Pyxel アプリケーションファイル(.pyxapp)に変換して`play`コマンドで実行することをおすすめします。
47+
4648
`run`および`play`コマンドには、バーチャルゲームパッドを有効にする`gamepad`属性や、追加パッケージを指定する`packages`属性を指定することが可能です。
4749

4850
例えば、バーチャルゲームパッドを有効にし、追加パッケージとして NumPy と Pandas を使用する場合は、次のような URL になります。

0 commit comments

Comments
 (0)