LeanCloud Play 内测邀请—不搭建后端,快速上线多人对战游戏

如果您准备打造一款多人对战游戏,正在寻找合适的后端平台与开发资源,那么我们诚邀您加入 LeanCloud 新产品「Play」内测。

产品功能

  • 玩家匹配: 随机或按指定条件将玩家匹配到一起玩游戏。就像《第五人格》、《吃鸡》等对战类手游,玩家只需点击「自由匹配」就可以随机匹配进入某个房间,或者玩家也可以自己新开房间。
  • 多人在线对战: 客户端与服务端使用 WebSocket 通道进行实时双向通信,确保游戏内所有消息能够快速同步。
  • 游戏逻辑运算: 由主客户端控制游戏逻辑。当主客户端掉线时,LeanCloud Play 会自动将网络状态最好的客户端切换为主客户端,确保游戏顺畅进行;您也可以选择在服务端编写游戏逻辑(服务端游戏逻辑支持尚在开发中)。
  • 多平台支持: 完美适配 Unity 引擎,支持多个平台,同时也欢迎您提出其他语言的需求。

全球支持,灵活稳定

LeanCloud Play 为您提供国内外节点,满足您向全球推广和发行游戏的需求。Play 服务端沿用了 LeanCloud 现有的可横向扩展的架构,支持动态扩容,从容应对海量用户;同时又在这些久经考验的底层架构上进行了深度优化与改进,可以稳定承接每秒亿级的消息下发量。

如何使用

使用 LeanCloud Play 的步骤非常简单。

连接服务器

Play.UserID = "Mario";
Play.Connect("1.0"); // 声明游戏版本

随机匹配房间

Play.JoinRandomRoom();

游戏内发送消息

// 定义名为 rpcResult 的 RPC 方法
[PlayRPC]
public void rpcResult(int winnerId)
{
  Debug.Log("winnerId: " + winnerId);
  ui.showWin();
}

// 向所有人发送游戏消息,收到消息的玩家的 rpcResult 方法会自动被触发
Play.RPC("rpcResult", PlayRPCTargets.All, winnerId);

更详细的文档及教程请阅读《Play 服务总览》、《Play 快速入门》和《Play · Unity (C#) 开发指南》。

申请内测

我们将邀请 10 名用户参与内测,通过微信群与我们的 Play 研发工程师保持沟通。您的反馈将会影响 LeanCloud Play 未来的发展方向,我们期待着与您共同打造优秀的游戏产品!

⚔️ 点击此处申请内测 ⚔️

This topic is now pinned. It will appear at the top of its category until it is unpinned by staff for everyone, or by individual users for themselves.

This topic is now a banner. It will appear at the top of every page until it is dismissed by the user.

This topic is no longer a banner. It will no longer appear at the top of every page.

This topic is now a banner. It will appear at the top of every page until it is dismissed by the user.

本主题在创建 3 天后自动关闭。不再允许添加新回复。

This topic is no longer a banner. It will no longer appear at the top of every page.

This topic is now unpinned. It will no longer appear at the top of its category.