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 namespacesFrom 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:
DefaultPlayerDataFor read-only player data and is game-specific. Keys such as
games_played,games_won,install_date,and more are found here.
PlayerDataFor player data and is game specific. Store and retrieve custom player statistics and other custom progression-related data here.
InGameItemsIn-game items are shared across all games in the publisher's portfolio. Store and retrieve virtual goods and global custom progression-related data here.
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_DATAProgressionNamespace.DEFAULT_PLAYER_DATAProgressionNamespace.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
For retrieving progression user data using the MiniTonCrossPlatform.GetProgressionUserData method, you can use the following JavaScript code:
We define the ProgressionNamespace constants and simulate the MiniTonCrossPlatform object and Action delegates for demonstration purposes.
The usage example demonstrates how to call MiniTonCrossPlatform.GetProgressionUserData with the specified progression namespace, user data keys, success callback, and failure callback.
For retrieving Progression user data using the MiniTonSDK, 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.
Parameters
progressionNamespace One of the namespace string constants
ProgressionNamespace.PLAYER_DATAProgressionNamespace.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
For updating Progression user data using the MiniTonCrossPlatform.UpdateProgressionUserData method
MiniTonCrossPlatform.UpdateProgressionUserData with the specified namespace, user data updates, success callback, and failure callback to update Progression user data.
Sample Implementation
Default Player Data
These are automatically updating, read-only statistics from the MiniTon platform
For use with GetProgressionUserData
games_played
Integer
A count of the games a player has entered
cash_games_played
Integer
A count of the cash games a player has entered
games_won
Integer
A count of the total games a player has won
cash_games_won
Integer
A count of the total cash games a player has won
best_score_lifetime
Float
The best score achieved by this player
average_score
Float
The average of all scores by this player
player_level
Integer
The playerโs level for this game
MiniTon_level
Integer
The playerโs global MiniTon level
install_date
Date
The UTC date and timestamp the user installed the game
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. HitSaveto 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
Was this helpful?