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
  • Set “Start Game” Button Click Event Callback
  • Set the Game Over

Was this helpful?

  1. Developer Success
  2. MiniTon Gaming SDK

Start your game until end

Set “Start Game” Button Click Event Callback

After the progress bar has finished loading, the player can start the game by clicking the “Start” button on the page.

The game frontend needs to place the game start logic code within the callback function to handle this event.

MINITONSDK.setStartGameButtonCallbak(callback);

Parameters

Parameter
Type
Description

callback

Function

The callback function for the "Start Game" button click event. This function contains the logic to start the game when the player clicks the button.

Return

none

Example

MINITONSDK.setStartGameButtonCallbak(() => {
    ...
});

Set the Game Over

This function should be called by the frontend when the player's game ends. It ensures that the game-over state is properly handled in frontend.

Backend still need call end_game information to MiniTon, though frontend called following function.

MINITONSDK.setGameOver();

Parameters:

None

Return:

None

PreviousInitialize and load your gameNextReporting Game Data API

Last updated 10 months ago

Was this helpful?

⚙️