How to Launch a Game

General Notes

  • The following describes the methods required to retrieve the launch game URL.

  • Before launching a game, you need to retrieve a token from the RTG using the Token API.

  • Anonymous play is available in the Game Launcher, simply put forReal=false and do not send user and token params.

Assumptions

  • The player must exist in the RTG database prior to launching a game.

Sweepstakes Casino Integration

For Sweepstakes Casino integrations, the supported currencies for gameplay transactions are:

  • GC (Gold Coin)

  • SC (SweepCoin)

Additionally, the required locale for Sweepstakes gameplay is:

  • Locale: en-SC

The en-SC locale must be used to ensure that games are displayed using the terminology and wording compliant with Sweepstakes regulatory and operational requirements.

Currency Switching Behavior

It is important to note that whenever a player switches from one currency to another (for example, from GC to SC or vice versa), the operator must perform a new request to the GameLauncher endpoint.

The GameLauncher endpoint is responsible for loading the game session with the currency currently selected by the player. Therefore, after a currency switch occurs, the existing game instance must be reloaded using a newly generated launch URL.

Integration Flow Requirements

  1. The player selects the game they want to play and chooses the currency (GC or SC).

  2. The operator must send a request to the GameLauncher endpoint in order to launch the game using the selected currency.

  3. The game is loaded inside the iframe using the launch URL returned by the GameLauncher response.

  4. If the player decides to switch currencies while playing, the operator must:

    • Send a new request to the GameLauncher endpoint using the newly selected currency.

    • Receive the updated game launch response.

    • Reload the iframe using the new launch URL returned by the endpoint.

  5. The game will then be relaunched and operated using the newly selected currency.

API - Game Launcher