Blockchain, Game

MadMAX

A Telegram mini app

MadMAX 1st image
Client

Confidential

Duration

1 month

Category

Blockchain

Year

2024

Technology

NestJS, MongoDB, Unity

Introduction

MadMAX is an interactive game on Telegram that aims to deliver an exhilarating endless runner experience, challenging players to collect unique in-game currency in a fast-paced and unpredictable environment.

MadMAX 2nd image

Challenges

MadMAX aims to provide a highly engaging and fair endless runner game experience that can scale to a large player base. However, several challenges stood in the way of achieving this goal:

– High volume of user interactions: The nature of this game generates an extremely high frequency of user inputs. The backend and database needed to process millions of events per minute efficiently without latency, ensuring a smooth and uninterrupted player experience.

– Real-time synchronization: Consistently and efficiently synchronizing player progress, scores, and collected in-game currency was critical for engagement, requiring robust real-time communication capabilities between the frontend and backend.

– Prevention of cheating and score manipulation: Ensuring fair play and maintaining the integrity of leaderboards and in-game currency values is also a challenge.

MadMAX 3rd image

Solutions

To overcome the challenges, Hola Tech adhered to the best practices. Key components of the solution included:

– Optimized frontend and backend for performance: To tackle performance optimization, we meticulously crafted a highly performant frontend with ReactJS, implementing techniques like lazy loading and efficient state management for a smooth user experience within the Telegram Mini App’s webview. Concurrently, the NestJS backend on AWS was optimized for low latency responses, utilizing efficient data querying with MongoDB to prevent UI freezes and ensure a responsive game flow.

– Highly optimized protocol: Hola Tech developed a highly optimized communication protocol between the Unity and the NestJS backend to ensure efficient and reliable real-time game state synchronization and data persistence.

– Comprehensive security and anti-cheat framework: We implemented robust server-side validation and anti-cheat mechanisms within NestJS to verify game data (scores, currency earned) and prevent manipulation from the client-side.

MadMAX 4th image

Featured numbers

– Handled 10,000+ peak concurrent users

– Processed 50,000 daily score and coin updates from player

Results

The implemented system successfully met MadMAX’s requirements for performance, security, and functionality, delivering an exceptional endless runner experience. The platform has significantly captivated players, maintaining a robust peak of 10,000 concurrent users. MadMAX has empowered players to engage in a highly competitive and fair environment, with thousands of daily score and coin updates securely processed. This demonstrates MadMAX’s success in providing a seamless, high-performance, and secure mobile gaming solution in the competitive endless runner genre.

Other Projects