Hello, App Inventor Creators!
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.
Prebuilt Methods: Simplifies tasks like room creation, data synchronization, and role management (host/opponent).
User-Friendly: Designed for beginners and advanced developers alike.
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
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
Pricing
5$ or 500 rs
Interested peoples can message me