Git Product home page Git Product logo

desktop-pet's Introduction

desktop-pet

参数说明

精灵位置

控制精灵的位置,最大只能填写 4 位数字 ,其顶部参数的优先级比底部优先级高,左侧参数的优先级比右侧优先级高

精灵大小

控制精灵的尺寸,最大只能填写 3 位数字

精灵模型

渲染精灵的资源链接,链接格式为以httphttps开头,以**.model.json.model3.json** 结尾,或者本地资源的绝对路径也可

点击区域

控制精灵可点击区域,一般查看模型的 json 文件中的hit_areas字段中的name属性的值即可,填写格式为每隔区域之间用英文逗号(,)进行分隔,且不能以英文逗号结尾,例如 head,body

精灵表情

控制精灵点击不同区域时触发的表情列表,只会保存在点击区域出现过的值,如果不填写默认从所有表情中随机选取一个表情进行展示。一般查看模型的 json 文件中的expressions字段中的name序号(从 0 开始)即可,填写格式为区域名用英文中括号([])包裹,表情序号名用英文小括号(())包裹,且序号之间用英文逗号(,)进行分隔,且不能以英文逗号结尾同时每一组结束必须加上英文分号(;)且不能有任何空格,可查看正则规则:

/^(\[([\w_]+?)\]\(([\w_]+)(,([\w_]+))*\);)+$/

,例如:

[head](1,f03);[body](f01);

精灵动作

控制精灵点击不同区域时触发的动作列表,随机从动作列表中选取一个动作进行执行,只会保存在点击区域出现过的值,如果不填写默认不执行动作。一般查看模型的 json 文件中的motions字段中的 key 值即可,填写格式为区域名用英文中括号([])包裹,表情动作用英文小括号(())包裹,如果是单个动作名,那么则从这个动作下随机选取某一个动作进行展示,如果后续跟上动作的序号(从 0 开始)那么则从给定序号中选取某一个动作进行展示,且不能有任何空格,可查看正则规则:

/^(\[([\w_]+?)\]\((([\w_]+((,\d+)*)?))(;(([\w_]+((,\d+)*)?)))*\);)+$/

,例如:

[body](tap_body;pinch_out,0,1);[head](idle);

编译结果

展示将点击区域精灵表情精灵动作的内容处理后保存至备至文件中的结果内容,可以根据编译结果中的内容查看是否符合预期

desktop-pet's People

Contributors

ox4f5da2 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.