Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@leancloud/play

Package Overview
Dependencies
Maintainers
5
Versions
73
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@leancloud/play

LeanCloud Play SDK

  • 1.0.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
11
Maintainers
5
Weekly downloads
 
Created
Source

Play-SDK-JS

build version

安装

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

文档

  • API 文档

编译

在工程目录下,执行

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                   // 主机切换测试

FAQs

Package last updated on 05 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc