MiniTon WhitePaper
  • πŸ†Welcome to MiniTon
  • ❔Why Now and Why MiniTon
  • About MiniTon
    • πŸ’΅Social Esports: Flexible and Compatible
      • Entry Fee
      • Prize
      • Types of Tournaments
      • Match Rules
    • πŸ•ΉοΈCompetitive Gaming Platform
      • Discover and Indulge in Captivating Games
      • Ensuring Game Fairness in Every Social Esports Encounter
      • Empowering Every Player to Organize Tournaments
    • πŸͺ„Developer Solution
    • πŸ“ˆSustainable Business Model
    • πŸ’²Tokenomic $MTC
    • πŸ§—β€β™‚οΈRoadmap
  • BUILDERS
    • πŸ’―Initial Team
    • 🎭Community
    • 🧩DAO Governance
  • Developer Success
    • πŸ‘¨β€πŸ’»MiniTon Developer Documentation
      • Set Up Core Loop & Gameplay
      • Random and Fairness
      • Setting up Tournaments and Gameplay Parameters
      • Implement Progression
      • Automatic Difficulty
      • Crash Detection via Crashlytics
      • Anti-Cheating Techniques
      • Aborted Matches and Forfeits
      • API-reference
    • 🀝Developer Cooperation
      • Is your game a game of skill?
      • Go Live with MiniTon
      • Game Marketing Guidelines
      • Tutorial Best Practices
      • Unlock Real Prizes
    • βš™οΈMiniTon Gaming SDK
      • Introduction
      • Initialize and load your game
      • Start your game until end
      • Reporting Game Data API
      • How to verify your signature
  • Legality
    • πŸ›οΈThe Legality of MiniTon
    • πŸ”’Privacy Policy
    • ⚠️User Terms & Conditions
Powered by GitBook

Contact us

  • Telegram

©️MiniTon 2023

On this page

Was this helpful?

  1. Developer Success
  2. MiniTon Gaming SDK

Introduction

PreviousMiniTon Gaming SDKNextInitialize and load your game

Last updated 9 months ago

Was this helpful?

πŸ” Game developers obtain a developer key (Secret Key) from MiniTon for data consistency verification, ensuring data security.

πŸ‘Ί Game Constraints:

  1. New player tutorial should be displayed

  2. Each game needs to set a countdown timer, which used to finalize the game

  3. If a player quit before the countdown timer ends, the score should be reported

Overview

  1. 🎬First the game developer need includes the two JS file[telegram-web-app.js & miniton_2.0.js], calls the init function through the SDK to obtain game-related information.

The main page will be displayed at the top layer of the game interface. While the game is loading its resources

It should simultaneously update the progress bar on the main page.

Loading bar progress by calling the setProgressValue function via the SDK.

  1. πŸš€ Upon entering the game screen

    • Call start_game via backend API in order to tell MiniTon the player had started a game.

  2. πŸ•ΉοΈ When the game begins

    • Call start_match via a backend API call

  3. 🎱 While the game is in progress

    • (optionally) Can report "Match Score (score)" multiple times through API

  4. 🏁 At the end of the game

    • Call "Match Result (end_match)" via a backend API call

  5. πŸ›‘ After the game ends

    • Call the SDK’s setGameOver function

    • Report β€œGame End (end_game)” information to MiniTon via backend API call

βš™οΈ
Click here to apply for Secret Key