How to Implement Multiplayer Connection on MakeCode Arcade R2

Hello everyone,

I’m currently developing a multiplayer game on MakeCode Arcade and plan to run it on R2 devices. My goal is to enable multiple R2 devices to connect to each other for synchronous multiplayer gameplay. However, I couldn’t find any suitable code examples or documentation for setting up multiplayer connections specifically for R2 devices.

Requirement: I’d like to establish a connection between R2 devices to enable multiplayer gameplay.

Question: Is there any existing code that could help achieve this multiplayer connection? Or are there any similar examples or tutorials available?

Thank you very much for your help!

2 Likes