Skip to content
On this page

猹引擎

猹引擎资源文件

资源文件负责模型渲染与页面展示。

目录结构

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/*.ymlhtml 字段映射到 resourcepacks/ChaEngine/ui/ 内的页面文件。

页面配置IDhtml 字段资源文件
首页入口pages/home/index.htmlresourcepacks/ChaEngine/ui/pages/home/index.html
活动中心pages/activity/center.htmlresourcepacks/ChaEngine/ui/pages/activity/center.html
商店主界面pages/shop/index.htmlresourcepacks/ChaEngine/ui/pages/shop/index.html

模型映射关系

服务端方块、生物、装备配置里的 modelanimationtexture 字段均映射到 resourcepacks/ChaEngine/model/

字段配置示例实际文件
modelboss/event_boss.geo.jsonresourcepacks/ChaEngine/model/boss/event_boss.geo.json
animationboss/event_boss.animation.jsonresourcepacks/ChaEngine/model/boss/event_boss.animation.json
textureboss/event_boss.pngresourcepacks/ChaEngine/model/boss/event_boss.png