In this guide, we're doing a quick rundown of how to add your game to AccelByte Launcher and log in using the launcher. This guide is Unity specific, however, the flow is identical in any other SDK.

Enabling Launcher to Your Video Game

You can grab our SDK from our public GitHub: https://github.com/AccelByte/accelbyte-unity-sdk

Overview

AccelByte Launcher accommodates users to access the store and download items from the store listing. Once the user is logged in on AccelByte Launcher, they do not need to login on the game.

Game Implementations

Login From Game-Client Launcher

The implementation of logging in via launcher is as simple as calling one function to handle it. The auth code, that is generated from AccelByte Launcher executable, is used for the login authorization.

Embedded below (Figure 1) is the logic code for:
- Login with launcher function, and
- Login with launcher callback

This function can be called right before the login menu with username and password shown if somehow the login process with AccelByte Launcher fails. We can show the username and password on the login menu.

To top it off, we need to set the AccelByte SDK config. Make sure all the config value is valid.

Figure 2a. AccelByte SDK Configuration Menu
Creating Your Own Video Game's Launcher
Figure 2b. AccelByte SDK Configuration Menu Details

Next, we build the game for windows desktop. From File >> Build Settings >> Choose Target Platform : “Windows” Arch : “x86_64” Build, then click on Build Button.

*note that if we are building Android build using Unity 2019, then we need to set the API Compatibility Level to “.NET 4.x“

Unity Build Configuration - Creating Video Game Launcher
Figure 3. Unity Build Configuration

That concludes the implementation on the game side.

Setting Up Store on Admin Portal

After you've uploadad your game and set it as the current version, the next step is to set it up for store listing. First off, go to the admin portal and while you're in Publisher namespace, select E-Commerce >> Stores menu.

Setting Up Store in Your Game
Figure 4a. Stores menu on Admin Portal
Adding In-Game Store to Your Video Game
Figure 4b. Admin Portal's Store Overview

To update the existing store items and settings, from the store menu action list, clone the existing store to make a draft store so that all the contents are copied to the clone version. We edit the draft store afterwards by clicking the view action.

If you plan to replace the store instead of updating, you can just create a new store and proceed on adding the item details.

Creating In-Game & On-Platform Store for Your Video Game
Figure 5. Store Options
Adding Storefront to Your Video Game
Figure 6. Store Cloning from Published Store to Draft Store
Video Game Storefront (On Platform & In-Game) Configuration
Figure 7. Draft Store - Edit Option

On Store edit menu, change tab to Items then click the create items button. Fill in the game title in Item Name field, select App for the Item Type, and Game for the App Type. App ID will be used to upload the game - in this example, we fill in “lightfantastic” as the ID, the same name as the game title.

Purchase Limit is the limit to how many of this item can be purchased from the store. We also have the options to the namespace currency and the currency code, which we suggest you to use the publisher namespace for this (we are using AccelByte as the publisher namespace and US currency).

Configuring the Storefront in Your Video Game
Figure 8. Draft Store Item List
Adding Entry to Your Video Game's Storefront
Figure 9. Draft Store - Add Item

Using Build Utils to Upload Your Game

Please refer to this document below:
https://docs.accelbyte.io/docs/guides/publishing/uploading-a-game/

Checking Out The Game From Launcher

At this point, we are can get the game from the store as a player. Create account and get the launcher from Accelbyte Player Portal https://demo.accelbyte.io/player, install the launcher on your computer, run it and log in using the player account that you've created.

Creating Your Own Game Launcher
Figure 10. AccelByte Launcher
Easy Game Launcher & Storefront for Your Video Game
Figure 11. AccelByte Launcher - Store
Get Your Own Steam-like Storefront for Your Games
Figure 12. Claim the Light Fantastic game from Store
How to Create Your Own Steam-like Game Client & Store
Figure 13. Light Fantastic is added to AccelByte Launcher Library

The version of the game depends on which version of the game you set as the ‘current version’ on the admin portal.


If you have any questions regarding this guide, please contact us through email at support@accelbyte.io.