Last update: 1/12/2022

Disclaimer: This is a living document and requirements may change in the future, we will aim to keep this document up to date with changes to our integration process.

Leaderboard integration

Q: leaderboard integration - it was mentioned that we need to inform you about what parameters to pass from the game to become visible on the op arcade leaderboards. can you give us any info about this and what's the best way to work with you on this?

A: At present, during OPArcade Tournaments, at least 3 parameters are passed via a GET request to launch the game. Namely:

The system passes them to your game upon game launch like so: “https://gameurl.com/?playerId=******&otp=*******&tourneyId=*******”. Upon connecting to Colyseus, the same parameters should be passed as options.

Currently, we would need your Colyseus code and we will provide you with a Colyseus URL to connect to. We can then proceed with testing tourney Auth and Leaderboard submissions.

Q: What variables are required to be passed back to OP Arcade for displaying user scores on the leaderboard:

A: Final score, the token, the tournament ID and the player ID — these are parameters our system generates so for local testing on your end, you can simulate them by passing any strings for those variables.

Q: What type of leaderboards does OP Arcade support?

A: Currently only a tournament-style leaderboard is supported. We have plans to also feature leaderboard by PFP/NFT token in the near feature.

Wallet Integration

Q: wallet integration - do you have an sdk we can use to make op arcade recognize the wallet for game?