官方包 · 游戏引擎

RPG Maker MZ 的联机游玩

RPG Maker MZ 插件:同一房间的玩家能看到彼此在地图上走动、聊天、共享您指定的开关与变量,还能互发事件。无需游戏服务器,测试游玩、桌面版与网页版都能用。

  • 用插件指令就能加入房间、聊天和发送自定义事件,无需写脚本。
  • 后加入的玩家也会拿到当前共享的开关与变量。
  • 插件与编辑器文字提供英文、日文、中文与韩文。

登录后,示例代码会自动填入您的集群主机。 登录

  1. 配置

    git clone https://github.com/hibira-io/rpgmaker-mz && cd rpgmaker-mz/server
    # put your app key in wrangler.toml, then:
    npx wrangler deploy
    npx wrangler secret put HIBIRA_APP_SECRET
  2. 安装

    Put HibiraOnline.js from the latest release into js/plugins/,
    then turn it on in the Plugin Manager:
      App key:        YOUR_APP_KEY
      Host:           ws.hibira.io
      Auth endpoint:  your Worker's URL
  3. 使用

    // Plugin command "Join room", or as script calls:
    HibiraOnline.join('town');
    HibiraOnline.say('Hello!');
    HibiraOnline.sendEvent('boss', 3);

开始之前

  • 在应用设置中开启“允许客户端事件”,玩家之间才能互相发送操作和点击。
  • 每位玩家的游戏端都被信任,适合合作、社交与休闲游戏,不适合在意作弊的竞技游戏。

请使用控制台中应用的 Key;Secret 只放在你的服务器上。频道、事件与授权端点的用法与 Pusher 完全相同。 免费创建账号 →