Web games distribution
How it works
You can launch and distribute web games via Xsolla Launcher. Games are opened in a separate window, and user data is passed by Xsolla Login in a JWT.
How to get it
- Set up a launcher.
- Set up the transfer of user data.
- Set up selling in-game virtual items and virtual currency (optional).
Set up Launcher
Creation of a new launcher with a web game
- Create a project in Publisher Account.
- Create a launcher with the Web type.
- In the Games section, click Set up to the right of your game.
- Go to Builds > Game builds.
- In the Adding web game build section:
- Specify the Game URL.
- Select whether the game should be launched in a maximized window.
- Specify the Default game window resolution.
- Click Save changes.
- Generate an installer for the launcher.
- Test the launcher.
- Publish the launcher.
- Send the launcher’s installer to your users.
Adding a web game to a launcher
To add a web game to a launcher that has already been created, refer to these instructions.To upload a web game build to the launcher:
- Open your project in Publisher Account.
- Click Launcher in the side menu.
- Find the launcher on the dashboard and click Edit launcher.
- In the Games section, click Set up to the right of your game.
- Go to Builds > Game builds.
- In the Adding web game build section:
- Specify the Game URL.
- Select whether the game should be launched in a maximized window.
- Specify the Default game window resolution.
- Click Save changes.
Changing the type of the game from desktop to web
- Open your project in Publisher Account.
- Click Launcher in the side menu.
- Find the launcher on the dashboard and click Edit launcher.
- In the Games section, click Set up to the right of your game.
- Go to Builds > Game builds.
- Select the Web game type.
- Click Yes, change to confirm.
- In the Adding web game build section:
- Specify the Game URL.
- Select whether the game should be launched in a maximized window.
- Specify the Default game window resolution.
- Click Save changes.
Set up transfer of user data
Use one of the following ways to set up user authorization in the game:- Set up JWT authentication on the game side. If you have questions, contact your Customer Success Manager or email to csm@xsolla.com.
- Enable user authorization forwarding from Launcher to the game. The game is opened in the browser within Launcher. Launcher opens the game link win the following format:
https://exmaple.com?token=<jwt-token>&locale=<locale>
, where<jwt-token>
is Xsolla Login user JWT, and<locale>
is the interface language in the ISO 639-1 format.
Set up selling in-game virtual items and virtual currency
To set up selling game keys, in-game virtual items and virtual currency, refer to these instructions.Was this article helpful?
Thank you for your feedback!
We’ll review your message and use it to help us improve your experience.Found a typo or other text error? Select the text and press Ctrl+Enter.