Introduction

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

Click here to apply for Secret Key

πŸ‘Ί 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

Last updated

Contact us

Telegram

©️MiniTon 2023