官方套件 · 遊戲引擎
RPG Maker MZ 的線上遊玩
RPG Maker MZ 外掛:同一個房間的玩家能看到彼此在地圖上走動、聊天、共用您指定的開關與變數,還能互傳事件。不需要遊戲伺服器,測試遊玩、桌面版與網頁版都能用。
HibiraOnline.jsGitHub Releases ↗GitHub ↗
- 用外掛指令就能加入房間、聊天和送出自訂事件,不必寫腳本。
- 晚加入的玩家也會拿到目前共用的開關與變數。
- 外掛與編輯器文字提供英文、日文、中文與韓文。
登入後,範例程式碼會自動帶入您的叢集主機。 登入
設定
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安裝
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使用
// Plugin command "Join room", or as script calls: HibiraOnline.join('town'); HibiraOnline.say('Hello!'); HibiraOnline.sendEvent('boss', 3);
開始之前
- 在應用程式設定中開啟「允許用戶端事件」,玩家之間才能互傳動作與點擊。
- 每位玩家的遊戲端都被信任,適合合作、社交與休閒遊戲,不適合在意作弊的競技遊戲。
請使用儀表板中的應用程式 Key;Secret 只放在你的伺服器上。頻道、事件與授權端點的用法和 Pusher 完全相同。 免費建立帳號 →