Implement Progression
The Progression methods allow you to store, recall, and update player data at any time within the game, unlocking personalized player experiences.
General Custom Progression Game Scene Flow
Create keys in Developer Console for
PlayerData and/or InGameItems namespaces
From client, retrieve player data using GetProgressionUserData at any time, prior, during, or at end of match play
Call SubmitScore at the conclusion of the match
Call UpdateProgressionUserData to update player data
Present the player with the custom progression scene
Call ReturnToMiniTon to return to the MiniTon BOT
Progression API
Namespaces
There are three namespaces used to segment Progression data:
DefaultPlayerData
For read-only player data and is game-specific. Keys such as
games_played
,games_won
,install_date,
and more are found here.
PlayerData
For player data and is game specific. Store and retrieve custom player statistics and other custom progression-related data here.
InGameItems
In-game items are shared across all games in the publisher's portfolio. Store and retrieve virtual goods and global custom progression-related data here.
INFO
In order to store data in the PlayerData and InGameItems namespaces, you must first create your custom keys via the MiniTon Developer Console. Remember to publish your keys to Production when you are ready to distribute your game builds that contain Progression.
Get Progression User Data
Retrieve data for the current user. The GetProgressionUserData method requires callback
methods that allow you to handle success and fail scenarios.
Parameters
progressionNamespace
One of the namespace string constants
ProgressionNamespace.PLAYER_DATA
ProgressionNamespace.DEFAULT_PLAYER_DATA
ProgressionNamespace.IN_GAME_ITEMS
userDataKeys
String key list of desired fields.
successCallback
Action delegate to handle successful callback. The method must be defined in the implementation.
failureCallback
Action delegate to handle failed callback. The method must be defined in the implementation.
Sample Implementation
Update Progression User Data
Write data for the current user. The UpdateProgressionUserData method requires callback
methods that allow you to handle success and fail scenarios.
INFO
The DefaultPlayerData namespace is read-only, and cannot be used with this method.
NOTE
This method can update up to 25 elements per invocation.
Parameters
progressionNamespace
One of the namespace string constants
ProgressionNamespace.PLAYER_DATA
ProgressionNamespace.IN_GAME_ITEMS
userDataUpdates
Dictionary of key/value pairs to be updated.
successCallback
Action delegate to handle successful callback. The method must be defined in the implementation.
failureCallback
Action delegate to handle failed callback. The method must be defined in the implementation.
Sample Implementation
Default Player Data
These are automatically updating, read-only statistics from the MiniTon platform
For use with GetProgressionUserData
INFO
Default Player Data values are calculated with completed matches that have a result. In progress games that have not yet matched with another player are excluded, and do not update the values.
Progression Room Entry Point
Configure Progression Room Entry Point
Configure your Entry Point within the Developer Console by clicking on
Progression -> Entry Points
. Be sure to complete all required fields. HitSave
to immediately see your room in Sandbox. Publish & Assign is used to share your entry point with your players in production. You can create dynamic text in the Title and Subtitle fields by inserting your progression keys names directly into the input box. Example: You have${Custom_Key_Name}
challenges remaining!Implement OnProgressionRoomEnter from MiniTonDelegate interface to load your progression scene
Call ReturnToMiniTon to return to the MiniTon BOT
Implement Progression Room
For Unity, you need to implement the MiniTonMatchDelegate
interface as a regular C# class. This will be instantiated when launching MiniTon later.
Last updated