Live2d官方項目運行
1-參考網址
- 教程網址:https://blog.csdn.net/qq_39123467/article/details/131735085
- live2d官方地址:https://live2d.com/cubism-sdk/download/
2-上手實踐
- 1)先打開官方項目-全部路徑打開
- 2)cd /CubismSdkForWeb-5-r.3/Samples/TypeScript/Demo中
- 3)進行 npm install
- 4)再進行 npm run build -> 此時會編譯一個dist的靜態文件
- 5)進入到dist的靜態文件中 -> live-server .
- 6)此時就已經了項目的運行演示
3-文件說明
Live2D Cubism 核心庫
此文件夾包含用于開發 JavaScript 或 TypeScript 應用程序的核心庫文件。
文件列表
live2dcubismcore.d.ts
此文件包含關于 live2dcubismcore.js 的 TypeScript 類型信息。在使用 TypeScript 進行開發時,需將此文件與 live2dcubismcore.js 配合使用。
live2dcubismcore.js
此文件包含 Cubism 核心功能以及一些包裝器功能。在使用 JavaScript 進行開發時,請使用此文件。
live2dcubismcore.js.map
此文件是 live2dcubismcore.d.ts 和 live2dcubismcore.js 之間的源映射文件。在調試時請使用此文件。
live2dcubismcore.min.js
此文件是 live2dcubismcore.js 的壓縮版本。在生產環境中請使用此文件。