详细内容
Playroom is now part of Little Umbrella
Build multiplayer games in minutes
Playroom provides scalable multiplayer backend for social and web-based games.
Build effortlessly with zero server setup.
Built for the next generation of multiplayer
Multiplayer configurations and tools to create games previously
only feasible by large-scale teams now possible by EVERYONE.
Casual
Build real time mobile and web games
Social
Build worlds with avatars and in game communication
Stream
Build games that take multi user and multi device inputs
AI
Build games with limitless content powered with AI

Embedded
Build games that brings 100s together from across the world
Get started in minutes
Simple API to set or get the state of game room. The state is
automatically synced between all players and screens.
npm install --save playroomkit react react-dom
React
Unity Threejs
Godot
Cocos
Phaser
PixiJs
WebXR
Playcanvas
React
Phaser
import { insertCoin, myPlayer, usePlayersList } from 'playroomkit';
import ReactNipple from 'react-nipple';
function Game(){
// Hook that returns an array of players in the room.
const players = usePlayersList();
// We render all players and a joystick for current player.
return (
<Physics gravity={{y: 1600}}>
{players.map((playerState) => (
<Player key={playerState.id} player={playerState} />
))}
<ReactNipple
onEnd={()=> myPlayer().setState("dir", undefined)}
onPlain={(e, data)=>
myPlayer().setState("dir", data.direction)} />
</Physics>
)
}
function Player({player}){
// Playroom hooks to get and set a player's state.
// Setting state here will automatically sync value
// with other players.
const [pos, setPos] = usePlayerState(player, "position", {x: 0, y: 0});
const [dir] = usePlayerState(player, "dir")
const [bodyRef, setBodyRef] = useRef(null);
useState(()=>{
// One player acts as a host, host checks the joystick state for
// each player, applies forces to the player and updates their pos.
if (!isHost() || !dir) return;
if (dir.x === "left"){
bodyRef.current.applyForce({x: -100, y: 0});
}
if (dir.x === "right"){
bodyRef.current.applyForce({x: 100, y: 0});
}
if (dir.y === "up"){
bodyRef.current.applyForce({x: 0, y: -100});
}
}, [dir]);
return (
<Sprite
ref={setBodyRef}
x={pos.x}
y={pos.y}
onPositionChange={(pos)=> setPos(pos)}
color={player.getProfile().color.hex}
/>
)
}
// Initiates the lobby UI and resolves promise
// when the players have all connected in the same room.
insertCoin().then(()=>{
ReactDOM.render(<Game />, document.getElementById("root"));
})
Save development & maintenance time
No longer will you have to oversee WebSocket, TCP, and webRTC protocols, along with server monitoring. You focus on your game and Playroom manages all other aspects.
Zero Backend Setup
Serverless architecture with no backend code to write or manage
Region: Earth
Nearest websocket backend running within milliseconds of the players
' fill-opacity='0.4'/><path d='M16.3089 29.1328C16.7323 29.3074 17.2021 29.3353 17.6431 29.2115C18.0841 29.0878 18.4708 28.8198 18.7414 28.4504L25.8789 18.5835C26.188 18.1766 26.3339 17.6687 26.2877 17.1599C26.2416 16.651 26.0067 16.1777 25.6292 15.8331C25.2517 15.4887 24.7591 15.2976 24.2481 15.2978H21.8596L23.3916 11.6573V11.6575C23.6572 11.0276 23.5906 10.3067 23.2146 9.73599C22.8383 9.16529 22.2022 8.81997 21.5186 8.81546H14.3538C13.8466 8.81261 13.3566 8.998 12.9784 9.33595C12.6 9.67366 12.3608 10.1399 12.3068 10.6442L11.2832 20.1974C11.2209 20.7769 11.4089 21.3557 11.7997 21.7881C12.1907 22.2207 12.7474 22.4661 13.3302 22.4628H15.7184L15.0361 26.9356C14.9702 27.3918 15.0597 27.8566 15.2908 28.2555C15.5216 28.6541 15.8803 28.9632 16.3089 29.1329L16.3089 29.1328ZM13.3302 20.4155L14.3538 10.8623L21.5187 10.8626L18.7892 17.3451H24.2482L17.0834 27.2394L18.107 20.4157L13.3302 20.4155Z' fill='black'/><defs><linearGradient id='paint0_linear_1_208' x1='10.5384' y1='6.45885' x2='27.8944' y2='14.7077' gradientUnits='userSpaceOnUse'><stop stop-color='%237717FF'/><stop offset='1' stop-color='%23A15FFF' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e)
Low Latency
Automatically switch between WebRTC and WebSockets for <50ms latency.
' fill-opacity='0.4'/><path d='M24.4436 21.2094L17.0099 13.5933L9.57617 21.2094' stroke='black' stroke-width='3'/><defs><linearGradient id='paint0_linear_1_169' x1='10.017' y1='6.05455' x2='27.3729' y2='14.3034' gradientUnits='userSpaceOnUse'><stop stop-color='%237717FF'/><stop offset='1' stop-color='%23A15FFF' stop-opacity='0'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e)
Low code SDK
Six lines of code to run multiplayer within minutes on any engine
Ship faster with easy-to-use integrations & toolkit
Multiplayer modules can be seamlessly integrated into any game, accelerating development and facilitating rapid play testing.
Joysticks Broadcast control and player positions Lobby Connect people together in a room Moderation Manage players and bots in game Gamepads Enable players to connect external input Playtesting Real time multiplayer testing in minutes Chat Add chatting experience in game seamlessly
Resources
Start ahead of the curve with an ever-expanding library of open-source game templates and cross-platform resources. Leverage Playroom to kick start your next blockbuster game.
Let’s Connect
Looking for help? We are just a message away.


![feature icon](data:image/svg+xml,%3csvg%20width='35'%20height='36'%20viewBox='0%200%2035%2036'%20fill='none'%20xmlns='
![feature icon](data:image/svg+xml,%3csvg%20width='39'%20height='39'%20viewBox='0%200%2039%2039'%20fill='none'%20xmlns='