how to limit the number of players to two in multiplayer real time game example ?
Develop games in your browser. Powerful, performant & highly capable.
Also how do i create condition 'wait for other player if second player is on game do action' or something like that?
1. You can limit max peer number when host create the room.
2. Look for tic-tac-toe multiplayer tutorial, it's what you're looking for.
DuckfaceNinja thanks i take a look at tic tac toe. Do you have any tips how do limit for peer numbers?