Developer documentation for the Construct 3 Plugin
Check what are perks of making an in-wallet game
Metapro Plugin overview
The Metapro plugin supports many features, including user login, authentication, profile management, leaderboard integration, score management, referral system integration, smart contract interaction, event triggers, and custom error handling.
Repo link: https://github.com/Augmented-Life-Studio/matapro-c3-plugin
Key Features
Account Management:
Request and manage Ethereum accounts.
Support for Web3 authentication to facilitate user logins.
Leaderboard Integration:
Query and retrieve leaderboard data, including best scores, current scores, total scores, and referral leaderboard data.
User Information Management:
Update and retrieve user details such as usernames, avatars, and authentication tokens.
Referral System Integration:
Generate, retrieve, and manage referral codes.
View referral structures, including downline information, referral scores, and leaderboard rankings.
Score Management:
Add, update, and retrieve user scores.
Access current, best, and total scores from the leaderboard.
Smart Contract Interaction:
Read data from smart contracts and execute transactions using ABI, function names, input data, and chain ID.
Event Triggers:
Handle events such as user logins, leaderboard data retrieval, score updates, referral code management, and transaction events.
Includes custom error handling for all plugin operations.
Map-based Runs:
Request and retrieve the number of user runs, with an optional map ID parameter.
Custom Error Handling:
Retrieve the most recent error message encountered by the plugin for debugging and user notifications.
Important notes
Most functions require the user to be logged in.
These data: Project ID, Leaderboard ID, Platform ID, and Map ID are provided to the developers by the Metapro staff. To obtain the data, please contact Łukasz Bartkowiak via private message on Discord.
All details can be found in the plugin README.md file https://github.com/Augmented-Life-Studio/matapro-c3-plugin/blob/main/README.md
Last updated