I’m developing a Web3 project, which is a Unity game converted to WebGL and embedded in Telegram. The game is deployed on Bot-Feater.
At the end of each game session, the game displays the current score and high score to the user.
I want to implement a system that tracks the current player and rewards the top scorer on the leaderboard. Scores are stored in a backend like Firebase.
How can I:
- Save users’ scores in Firebase?
- Accurately track the user playing the game in Telegram?
- Store and retrieve scores efficiently for a WebGL game embedded in Telegram?