[Paid] 2 Player GameRoom Extension using Firebase

Hello, App Inventor Creators! :wave:

I’m excited to introduce GameRoom, a powerful yet simple extension that makes creating two-player real-time games seamless and fun!

If you've been looking to enhance your apps with multiplayer features, GameRoom is the tool you need. With Firebase integration and easy-to-use blocks, you can focus on designing your game while the extension handles the backend complexities.

:white_check_mark: Prebuilt Methods: Simplifies tasks like room creation, data synchronization, and role management (host/opponent).
:white_check_mark: User-Friendly: Designed for beginners and advanced developers alike.
:white_check_mark: Flexible Use Cases: Perfect for games, quizzes, and interactive challenges.

Why use our extension
This same thing can be done using firebasedb.But when i created a 2 player pong game it took half of the day. Using the extension you can do this in 1 hour

What Can GameRoom Do?

  • Create Rooms: Set up a game room with one click.
  • Join Rooms: Allow players to connect instantly.
  • Synchronize Data: Exchange data between players in real-time.
  • Manage Roles: Automatically assign host and opponent roles for dynamic gameplay.
  • Clear Data: Reset game data after each session.

Blocks
SetPlayerId
component_set_get (2)

Set a unique player name to be used in the room.playerId should be set before calling joinRoom function

JoinRoom
component_method (8)

Join/Create room in the given room id.

StoreMyValue
component_method (9)

Store players data

StoreValueAsHostIfHost
component_method (10)

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
component_method (11)

For reusing of roomcodes room data should be cleared at the time of exit.This method is used to clear the room.

OpponentDataChanged
component_event (8)

Triggers when data of opponent changes. Returns a dictionary containing all the data of opponent.

HostDataChanged
component_event (9)

Triggers when data of host changes

PlayerJoined
component_event (10)

Triggers when a player is joined.

Implementation Example of 2 player pong game

Pricing
5$ or 500 rs

Interested peoples can message me

Unlisted until the naming conventions are correctly followed.

naming conventions are corrected

A few more corrections would be appreciated.

gameroom to GameRoom
roomid to roomId
StoreMyvalue to StoreMyValue
datadictionary to dataDictionary

naming conventions of 'roomid','StoreMyvalue','datadictionary',class name had been corrected as you said. Thankyou for your patience

so only 2 players game can use this extension? what about 3 players or more?

It can only handle 2 players game.