forked from guansss/pixi-live2d-display
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
74 additions
and
73 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -28,7 +28,7 @@ Live2D models on a high level without the need to learn how the internal system | |
|
||
#### Requirements | ||
|
||
- PixiJS: 6.x | ||
- PixiJS: 7.x | ||
- Cubism core: 2.1 or 4 | ||
- Browser: WebGL, ES6 | ||
|
||
|
@@ -108,7 +108,7 @@ import { Live2DModel } from 'pixi-live2d-display/cubism4'; | |
<!-- Load Cubism and PixiJS --> | ||
<script src="https://cubism.live2d.com/sdk-web/cubismcore/live2dcubismcore.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/gh/dylanNew/live2d/webgl/Live2D/lib/live2d.min.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/browser/pixi.min.js"></script> | ||
<script src="https://pixijs.download/v7.4.0/pixi.min.js"></script> | ||
|
||
|
||
<!-- if support for both Cubism 2.1 and 4 --> | ||
|
@@ -172,7 +172,7 @@ window.PIXI = PIXI; | |
* Time to code | ||
```js | ||
var category_name = "Idle" // name of the morion category | ||
var animation_index = 0 // index of animation under that motion category | ||
var animation_index = 0 // index of animation under that motion category [null => random] | ||
var priority_number = 3 // if you want to keep the current animation going or move to new animation by force [0: no priority, 1: idle, 2: normal, 3: forced] | ||
var audio_link = "https://cdn.jsdelivr.net/gh/RaSan147/[email protected]/playground/test.mp3" //[Optional arg, can be null or empty] [relative or full url path] [mp3 or wav file] | ||
var volume = 1; //[Optional arg, can be null or empty] [0.0 - 1.0] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters