Blox World 2D
Loading...

Serverless Multiplayer Test

Node.js servers (`require("ws")`) don't run in this environment. Instead, I converted your code to use PeerJS, which connects browsers directly via WebRTC!

1. Host a Game
Your Game ID: Loading...
(Give this ID to a friend)

Or join a friend:

2. Join

Waiting to host or join...

Use arrow keys to move your red square. Blue is the other player.