{"id":19614824,"url":"https://github.com/leancloud/play-sdk-js","last_synced_at":"2025-04-28T02:30:46.157Z","repository":{"id":48933706,"uuid":"138535283","full_name":"leancloud/Play-SDK-JS","owner":"leancloud","description":null,"archived":false,"fork":false,"pushed_at":"2021-07-05T02:50:19.000Z","size":2584,"stargazers_count":3,"open_issues_count":15,"forks_count":8,"subscribers_count":16,"default_branch":"master","last_synced_at":"2024-11-11T10:53:50.330Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leancloud.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-06-25T02:42:44.000Z","updated_at":"2021-07-05T02:46:10.000Z","dependencies_parsed_at":"2022-09-08T12:01:37.065Z","dependency_job_id":null,"html_url":"https://github.com/leancloud/Play-SDK-JS","commit_stats":null,"previous_names":[],"tags_count":92,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FPlay-SDK-JS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FPlay-SDK-JS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FPlay-SDK-JS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leancloud%2FPlay-SDK-JS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leancloud","download_url":"https://codeload.github.com/leancloud/Play-SDK-JS/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224092043,"owners_count":17254152,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-11T10:53:55.505Z","updated_at":"2024-11-11T10:53:57.103Z","avatar_url":"https://github.com/leancloud.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Play-SDK-JS\n\n![build](https://img.shields.io/travis/leancloud/Play-SDK-JS)\n![version](https://img.shields.io/github/package-json/v/leancloud/Play-SDK-JS)\n\n## 安装\n\n从 Release 下载 play.js 并拖拽至 Cocos Creator 中作为源码引用（无需做插件配置）\n\n## 文档\n\n- [API 文档](https://leancloud.github.io/Play-SDK-JS/doc/)\n\n## 编译\n\n在工程目录下，执行\n\n```\nrollup -c\n```\n\ndist/play.js 即为生成的库文件。\n\n## 项目的目录结构\n\n```\n.\n├── dist                      // 打包产出 (dist 分支)\n│   ├── play.js                 // 最终打包的 js 文件，拖拽至 Cocos Creator 中使用\n├── src                       // 源码\n│   ├── index.js                // 打包入口\n│   ├── Play.js                // 最重要的接口类，提供操作接口和注册事件\n│   ├── Room.js                // 房间类\n│   ├── Player.js                // 玩家类\n│   └── ...\n├── test                      // 测试用例\n│   ├── Connect.test.js                 // 连接测试\n│   ├── Lobby.test.js                 // 大厅测试\n│   ├── CreateRoom.test.js                   // 创建房间测试\n│   ├── JoinRoom.test.js                   // 加入房间测试\n│   ├── ChangeProperties.test.js                   // 修改房间 / 玩家属性测试\n│   ├── CustomEvent.test.js                   // 发送自定义消息测试\n│   └── Master.test.js                   // 主机切换测试\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fplay-sdk-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleancloud%2Fplay-sdk-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleancloud%2Fplay-sdk-js/lists"}