About Live2D
About Live2D
The engine now supports the use of Live2D character models. If you want to use Live2D models, please follow these steps:
Obtain the necessary authorization for using Live2D.
Download Live2D and CubismCore from the following links:
Rename
l2d.js
andlive2dcubismcore.min.js
respectively, then put the files inpackages/webgal/src/assets/lib
, and then go topackages/webgal/index.html
, and uncomment the following two lines so that they become:htmlCopy code<script src="/src/assets/lib/l2d.js"></script> <script src="/src/assets/lib/live2dcubismcore.min.js"></script>
In the
packages/webgal/src/Core/controller/stage/pixi/PixiController.ts
file, uncomment the following lines:javascriptCopy codeimport { Live2DModel, SoundManager } from 'pixi-live2d-display'; public addLive2dFigure(key: string, jsonPath: string, pos: string, motion: string) { // ... }
In the
packages/webgal/src/Components/Stage/MainStage/useSetFigure.ts
file, uncomment the following line:javascriptCopy code return WebGAL.gameplay.pixiStage?.addLive2dFigure(...args);
You can now use Live2D character models as part of your illustrations. Place the entire model directory inside the
game/figure
directory. To display a character model, call the corresponding JSON file.
Note: The author of this project has not used any Live2D SDK source code or models. Any copyright disputes arising from the use of Live2D are the sole responsibility of the developers or creators of the modified project!