猹引擎
猹引擎资源文件
资源文件负责模型渲染与页面展示。
目录结构
txt
resourcepacks/ChaEngine/
model/
活动终端/
活动终端.geo.json
活动终端.animation.json
活动终端.png
试炼守卫/
试炼守卫.geo.json
试炼守卫.animation.json
试炼守卫.png
ui/
pages/
home/
index.html
notice.html
activity/
center.html
sign-in.html
rank.html
quest/
main.html
chapter-1.html
shop/
index.html
detail.html资源文件类型
| 类型 | 目录 | 作用 |
|---|---|---|
| 模型结构 | model/**/*.geo.json | 定义模型骨骼与结构 |
| 模型动画 | model/**/*.animation.json | 定义动作与过渡 |
| 模型贴图 | model/**/*.png | 定义模型外观纹理 |
| 页面文件 | ui/pages/**/*.html | 定义可打开页面内容 |
页面映射关系
服务端页面配置位于 plugins/ChaEngine/ui/*.yml,html 字段映射到 resourcepacks/ChaEngine/ui/ 内的页面文件。
| 页面配置ID | html 字段 | 资源文件 |
|---|---|---|
| 首页入口 | pages/home/index.html | resourcepacks/ChaEngine/ui/pages/home/index.html |
| 活动中心 | pages/activity/center.html | resourcepacks/ChaEngine/ui/pages/activity/center.html |
| 商店主界面 | pages/shop/index.html | resourcepacks/ChaEngine/ui/pages/shop/index.html |
模型映射关系
服务端方块、生物、装备配置里的 model、animation、texture 字段均映射到 resourcepacks/ChaEngine/model/。
| 字段 | 配置示例 | 实际文件 |
|---|---|---|
model | boss/event_boss.geo.json | resourcepacks/ChaEngine/model/boss/event_boss.geo.json |
animation | boss/event_boss.animation.json | resourcepacks/ChaEngine/model/boss/event_boss.animation.json |
texture | boss/event_boss.png | resourcepacks/ChaEngine/model/boss/event_boss.png |
猹件开发组