# live2d_demo **Repository Path**: shellblock/live2d_demo ## Basic Information - **Project Name**: live2d_demo - **Description**: No description available - **Primary Language**: Unknown - **License**: GPL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-04-13 - **Last Updated**: 2021-11-03 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # Live2D demo Live2D 看板娘插件 (https://www.fghrsh.net/post/123.html) 的前端 HTML 源码 ### 特性 - 基于 API 加载模型,支持 定制 提示语 - 增加 参数设置 一键定制看板娘,易用性++ - 增加 看板娘样式设置,可直接设置宽高度等 - 支持多种一言接口,基于 JQuery UI 实现拖拽 ## 使用 ### 目录结构 ```shell │ demo1-default.html // 常规引用 Demo │ demo2-autoload.html // autoload.js Demo │ demo3-waifu-tips.html // 内置 waifu-tips Demo │ └─assets autoload.js // 自动异步加载 flat-ui-icons-regular.eot // Flat UI 字体 flat-ui-icons-regular.svg // Flat UI 字体 flat-ui-icons-regular.ttf // Flat UI 字体 flat-ui-icons-regular.woff // Flat UI 字体 live2d.js // Live2D 核心 waifu-tips.js // Live2D 看板娘 扩展 waifu-tips.json // Live2D 看板娘 提示语 waifu.css // Live2D 看板娘 样式表 ``` ### 食用方法 - 依赖类库 - JQuery (`waifu-tips.js`) - JQuery UI (仅实现 *拖拽效果* 需要) - 常规方式引入 1. 在 `` 前引入 `waifu.css` 样式表 2. 在 `
· · · · · ·` 前引入 `waifu-tips.js` 和 `live2d.js` 3. 在 `` 前插入 初始化 JS,可在 初始化前 设置参数 ```html
· · · · · ·