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.

Last updated:01/14/2022

Background

Screen Shot 2022-01-03 at 12.53.45 PM.png

At present, Leaderboards are populated and shown for Tournament-enabled games. To prevent player cheating, we must ensure that critical gameplay, score submission and computation is done on a remote server and not on player devices.

Before - everything is running on player device After - Critical functions vulnerable to malicious modification is moved to your server

Before - everything is running on player device After - Critical functions vulnerable to malicious modification is moved to your server

After - game logic/score computation and submission is done on a separate Game Server

After - game logic/score computation and submission is done on a separate Game Server

Calling our API’s from your server is all that is needed to authenticate a player and attribute a score for your game on our leaderboards.

PROCESS

swimlanes-c33be3508b2569a2841293b76ad53341.png

*Please check https://www.notion.so/outplay-games/Integrating-With-Leaderboards-Tournaments-Colyseus-Method-cf32df3bde8d4e28b327b3d593a0e992, for parameters that are passed to your game.

The two calls required to integrate with our system are:

IMPORTANT — start() must be called every game round to verify if the player has remaining “tries” left. For multiplayer games, start() is required for every player connected. Invalid players will not have their scores posted regardless.

IMPORTANT — the parameter ‘otp’ passed from OPArcade frontend is renamed to ‘token’ when used in the API calls. Unfortunately for backward compatibility this is being kept as is for now.