Giter Site home page Giter Site logo

play-sdk-js's Introduction

Play-SDK-JS

安装

从 Release 下载 play.js 并拖拽至 Cocos Creator 中作为源码引用(无需做插件配置)

文档

编译

在工程目录下,执行

rollup -c

dist/play.js 即为生成的库文件。

项目的目录结构

.
├── dist                      // 打包产出 (dist 分支)
│   ├── play.js                 // 最终打包的 js 文件,拖拽至 Cocos Creator 中使用
├── src                       // 源码
│   ├── index.js                // 打包入口
│   ├── Play.js                // 最重要的接口类,提供操作接口和注册事件
│   ├── Room.js                // 房间类
│   ├── Player.js                // 玩家类
│   └── ...
├── test                      // 测试用例
│   ├── Connect.test.js                 // 连接测试
│   ├── Lobby.test.js                 // 大厅测试
│   ├── CreateRoom.test.js                   // 创建房间测试
│   ├── JoinRoom.test.js                   // 加入房间测试
│   ├── ChangeProperties.test.js                   // 修改房间 / 玩家属性测试
│   ├── CustomEvent.test.js                   // 发送自定义消息测试
│   └── Master.test.js                   // 主机切换测试

play-sdk-js's People

Contributors

joesonw avatar jysperm avatar leeyeh avatar onerain88 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.