Skip to content

Commit 9d0d05a

Browse files
translations
1 parent 933b26e commit 9d0d05a

2 files changed

Lines changed: 26 additions & 41 deletions

File tree

src/en/live2D.md

Lines changed: 12 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,29 @@
11
# About Live2D
2-
This engine now supports using live2D models. If you want to use live2D models, please follow the steps below:
2+
This engine now supports the use of Live2D models. If you want to use Live2D models, please follow these steps:
33

44
:::info
5-
Note: The following steps are all based on the WebGAL source code, you can find the WebGAL source code on GitHub.
5+
Note: Some of the following steps are based on the WebGAL source code, which you can find on GitHub.
66

77
[WebGAL Source Code](https://github.com/OpenWebGAL/WebGAL)
88

9-
About building WebGAL from source, please refer to [WebGAL Build](developers)
9+
For information on how to build WebGAL from source, please refer to [WebGAL Build](developers)
1010
:::
1111

12-
1. Obtain the authorization of Live2D by yourself
12+
1. Obtain a Live2D license yourself.
1313

14-
2. Download Live2D and Cubismcore from https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js and https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js respectively
14+
2. Go to https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js and https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js to download Live2D and cubismcore respectively.
1515

16-
3. Rename them to `live2d.min.js` and `live2dcubismcore.min.js` respectively, then put the files in `packages/webgal/public/lib`, then go to `packages/webgal/index.html`, uncomment the following two lines to make them:
17-
```html
18-
<script src="lib/live2d.min.js" ></script>
19-
<script src="lib/live2dcubismcore.min.js"></script>
20-
```
21-
4. Go to `packages/webgal/src/Core/controller/stage/pixi/PixiController.ts`, uncomment
22-
`import { Live2DModel, SoundManager } from 'pixi-live2d-display';` and `public addLive2dFigure(key: string, jsonPath: string, pos: string, motion: string) {...... uncomment this whole function}`
23-
24-
Note: If the IDE prompts that there are unimported variables, please import them according to the prompts.
25-
26-
5. Go to `packages/webgal/src/Components/Stage/MainStage/useSetFigure.ts` and uncomment `return WebGAL.gameplay.pixiStage?.addLive2dFigure(...args);`
16+
3. Rename them to `live2d.min.js` and `live2dcubismcore.min.js` respectively, and then put the files in **one of the specified directories**.
2717

28-
6. Now you can start using Live2D as illustrations. You need to put the directory of the entire model in the `game/figure` directory. The way to call the illustration is to call the JSON file of the illustration.
18+
- Custom engine directory: `[WebGal]/assets/templates/Derivative_Engine/[Your custom engine]/lib`
19+
- Game directory (applies to a single project): `[WebGal]/public/games/[Your game]/lib`
20+
- WebGal source code directory: `[WebGal source code]/packages/webgal/public/lib`
2921

30-
7. If you need to build a production package, or use it in WebGAL Terre, please run the `yarn build` command to build WebGAL. After completion, please refer to [How to use a custom engine](derivative) to use the modified engine.
22+
4. Now you can start using Live2D as a figure. You need to put the entire model directory into the `game/figure` directory. The way to call the figure is to call the figure's json file.
3123

32-
**Note: The author of this project did not use any source code and models of Live2D SDK. Any copyright disputes caused by the use of Live2D shall be borne by the secondary developer or producer!**
24+
**Note: The author of this project does not use any source code or models of the Live2D SDK. Any copyright disputes arising from the use of Live2D are the sole responsibility of the secondary developer or creator!**
3325

34-
## Switch actions and expressions
26+
## Switching Motions and Expressions
3527

3628
You can use the `-motion=motionName` or `-expression=expressionName` parameters to switch expressions, such as:
3729

src/ja/live2D.md

Lines changed: 14 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,31 @@
11
# Live2Dについて
2-
本エンジンはlive2D立ち絵の使用をサポートするようになりました。live2D立ち絵を使用する場合は、以下の手順に従ってください
2+
このエンジンは現在、Live2D立ち絵の使用をサポートしています。Live2D立ち絵を使用する場合は、次の手順に従ってください
33

44
:::info
5-
注意:以下の手順はすべてWebGALのソースコードに基づいて操作する必要があります。WebGALのソースコードはGitHubにあります
5+
注意:以下の手順の一部はWebGALソースコードの操作に基づいています。WebGALのソースコードはGitHubで見つけることができます
66

7-
[WebGAL ソースコード](https://github.com/OpenWebGAL/WebGAL)
7+
[WebGALソースコード](https://github.com/OpenWebGAL/WebGAL)
88

9-
WebGAL のソースコードからのビルド方法については、[WebGAL ビルド](developers) を参照してください。
9+
ソースコードからWebGALをビルドする方法については、[WebGALビルド](developers)を参照してください。
1010
:::
1111

12-
1、Live2Dのライセンスを自分で取得する
12+
1. 自身でLive2Dのライセンスを取得してください。
1313

14-
2https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.jsとhttps://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.jsから、それぞれLive2DとCubismCoreをダウンロードする
14+
2. https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.jshttps://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js からそれぞれLive2Dとcubismcoreをダウンロードしてください。
1515

16-
3、それぞれ「live2d.min.js」と「live2dcubismcore.min.js」に名前を変更し、ファイルを「packages/webgal/public/lib」に配置し、「packages/webgal/index.html」に移動して、次の2行のコメントを外して次のように変更する。
17-
```html
18-
<script src="lib/live2d.min.js" ></script>
19-
<script src="lib/live2dcubismcore.min.js"></script>
20-
```
21-
4、「packages/webgal/src/Core/controller/stage/pixi/PixiController.ts」に移動して、「import { Live2DModel, SoundManager } from 'pixi-live2d-display';」と「public addLive2dFigure(key: string, jsonPath: string, pos: string, motion: string) {...... この関数をすべてコメント解除する}」のコメントを外す
22-
23-
注意:IDEがインポートされていない変数があると警告する場合は、警告に従ってインポートしてください。
24-
25-
5、「packages/webgal/src/Components/Stage/MainStage/useSetFigure.ts」に移動して、「return WebGAL.gameplay.pixiStage?.addLive2dFigure(...args);」のコメントを外す
16+
3. それぞれ`live2d.min.js``live2dcubismcore.min.js`にリネームし、ファイルを**指定されたディレクトリのいずれか**に配置してください。
2617

27-
6、これでLive2Dを立ち絵として使用できるようになりました。モデルのディレクトリ全体を「game/figure」ディレクトリに配置する必要があります。立ち絵を呼び出す方法は、立ち絵のJSONファイルを使用することです。
18+
- カスタムエンジンディレクトリ:`[WebGal]/assets/templates/Derivative_Engine/[あなたのカスタムエンジン]/lib`
19+
- ゲームディレクトリ(単一のプロジェクトに適用):`[WebGal]/public/games/[あなたのゲーム]/lib`
20+
- WebGalソースコードディレクトリ:`[WebGalソースコード]/packages/webgal/public/lib`
2821

29-
7、プロダクションビルドが必要な場合、または WebGAL Terre で使用する場合は、`yarn build` コマンドを実行して WebGAL をビルドしてください。完了したら、[カスタムエンジンを使用する方法](derivative) を参照して、変更したエンジンを使用してください
22+
4. これで、Live2Dを立ち絵として使用できるようになりました。モデル全体のディレクトリを`game/figure`ディレクトリに配置する必要があります。立ち絵を呼び出す方法は、立ち絵のjsonファイルを呼び出すことです
3023

31-
**注意:このプロジェクトの作者は、Live2D SDKのソースコードやモデルを一切使用していません。Live2Dの使用によって生じた著作権上の紛争は、二次開発者または制作者がすべて責任を負うものとします!**
24+
**注意:このプロジェクトの作者は、Live2D SDKのソースコードやモデルを一切使用していません。Live2Dの使用に起因する著作権紛争は、すべて二次開発者または制作者が責任を負うものとします。**
3225

33-
## モーションと表情を切り替える
26+
## モーションと表情の切り替え
3427

35-
`-motion=motionName`または`-expression=expressionName`パラメータを使用して、表情を切り替えることができます。例えば
28+
`-motion=motionName`または`-expression=expressionName`パラメータを使用して表情を切り替えることができます。例
3629

3730
```
3831
changeFigure:xxx.json -motion=angry -expression=angry01;

0 commit comments

Comments
 (0)