Transform the Way You Build Multiplayer Games
Say goodbye to the complexities of adding real-time multiplayer functionality. GameRoom makes it seamless, fast, and fun.
- Simplify Development: Create rooms and manage roles effortlessly.
- Save Time: Build 2-player games in just 1 hour, not half a day.
- Proven Results: I used it to rebuild a Pong game in record time!
Blocks
SetPlayerId
Set a unique player name to be used in the room.playerId should be set before calling joinRoom function
JoinRoom
Join/Create room in the given room id.
StoreMyValue
Store players data
StoreValueAsHostIfHost
Some values like ball in a pong game cannot be stored by both two players because that cause synchronisation issues.So we select one player as host and uploads his data using this block.This block only works if player is the host.
ClearRoomData
For reusing of roomcodes room data should be cleared at the time of exit.This method is used to clear the room.
OpponentDataChanged
Triggers when data of opponent changes. Returns a dictionary containing all the data of opponent.
HostDataChanged
Triggers when data of host changes
PlayerJoined
Triggers when a player is joined.
Implementation Example of 2 player pong game
Message me to know the price and start building smarter. Let’s make game development stress-free!