Clash of The Deep: How Todor3D Made a PvP Card Game Run Smoothly on Low-End Android in Telegram

Clash of The Deep is a Hearthstone-style PvP card game that Todor3D built for a US client to run inside Telegram and on the web. Two engineering problems shaped it: early builds dropped frames during card animations on the cheap Android phones most players use, and in rooms where players stake TON, both screens had to show exactly the same match, because any difference would turn into a dispute about money.

At a glance
Client Clash of The Deep, United States
Product Turn-based PvP card game in Telegram and on the web
Stack React, Vite, NestJS, TypeScript, MongoDB, socket.io, Telegram Web App SDK, TON and Telegram Stars
Team Project manager, frontend developer, backend developer, QA engineer, UI/UX designer, 2D designer
Budget $10,000–50,000
Duration Ongoing, with 24/7 support
Studio Todor3D, 6101 W Centinela Ave #110, Culver City, CA 90230; founded 2020; 40+ people; Clutch 5.0 · 25 reviews

A Hearthstone-Style Game Built for a Phone in a Chat App

The client already ran a Telegram digging game with an active TON player base. It wanted a new competitive format that would give existing players something fresh and pull in new users from the wider Telegram audience, without leaving the same ecosystem.

The answer was a turn-based card duel. Cards are drawn at random into the player's hand, and each one carries effects that work on both sides of the table: it can buff the caster, hit the opponent or do both.

With dozens of cards and layered effects, every turn is a decision rather than a tap. That depth is also what makes the game demanding to render on a weak phone, since each turn triggers animations for draws, plays and effects.

Early Builds Dropped Frames on the Devices Players Own

Development hardware is fast. The game's audience is not: most players open it on mid-range and low-end Android phones, inside the Telegram WebView rather than a dedicated browser or native app.

Most players of the Todor3D Telegram card game open it on mid-range and low-end Android phones inside the Telegram WebView, where early builds dropped frames during card animations. The team reworked the visual layer and how the game redraws during turns, and shipped a web build in parallel from the same React and NestJS codebase, all within a $10,000–50,000 budget.

The timing of those drops mattered more than their number. They hit exactly when a player played a card and expected an instant response, the moment that decides whether a game feels sharp or sluggish.

The case page does not publish frame-rate measurements or a device list, so we cannot quantify the improvement. What it does say is that the game now holds smoothly on the devices the audience actually owns.

Problem Where it showed What the team changed
Dropped frames Card animations on low-end Android in Telegram WebView Reworked the visual layer
Wasted redraws During turns, when the board updates Tightened how and when the game redraws
Board drift between players Real-money TON rooms Real-time match state over socket.io
Interrupted payments Cancellations and exits from stake rooms One refund routine for every exit path

Both Players Must See the Same Board

In a casual game, a small mismatch between two screens is a glitch. In a room where both players have locked TON, it is a dispute waiting to happen.

Todor3D built the frontend and backend as one coherent system, with match state flowing in real time through socket.io. Both players see the same board, the same turn and the same outcome.

The same end-to-end approach covers the money itself. Todor3D built the game from a blank repository and owns the whole payment path, with TON deposits, holds and withdrawals handled end to end inside the product.

Stakes Sit in Escrow Until the Match Ends

The real-money layer is the center of the product. Players enter fixed-stake TON rooms, lock the stake and play head to head.

Funds go on hold the moment a player commits to a room. When the match ends, the pot pays out automatically, net of the platform's commission.

Every way out of a room runs through the same refund routine, so a cancelled match returns the stake in full. The case page sums it up: a player either plays the match or gets the money back, with no third option.

Stars, TON and a Soft Currency Protected From Farming

Outside the stake rooms, the game has a shop and a crafting loop. The shop sells Gold cards and skins for Telegram Stars or TON.

Shards, a soft currency earned through regular play, let players craft Gold cards without spending money. An anti-abuse system protects Shards from farming, which matters in any game where a free currency can be converted into items that otherwise cost real money.

The economy is shared with the client's main game. An existing player walks into Clash of The Deep with their progress intact instead of starting from zero, which was the point of building it as a new vertical rather than a separate title.

One Codebase for Telegram and the Web

The web version shipped alongside the Telegram one, without a second codebase. React and Vite on the front end and NestJS on the back end serve both, with the Telegram Web App SDK handling the integration with Telegram.

For the client, that means one set of fixes, one economy and one release process, while reaching players who never open Telegram. It also means a fix to the redraw logic for Telegram's WebView reaches web players in the same release.

The Roadmap Is Still a Plan

With the MVP live, the next steps on the case page are about competition and retention. None of these had shipped when the case was published:

  • random PvP with MMR and league progression;
  • a Play with Friend mode with shareable invite links;
  • a battle pass;
  • competitive tournaments with prize ladders.

Todor3D continues as the product team with 24/7 support. For readers interested in the economy side of the same ecosystem, the studio's larger TON game, with boss seasons, clans and an auction, runs at $250,000–500,000 and has completed three seasons.

Developers working on similar projects can find the platform's own documentation in the Telegram Mini Apps reference, including how apps run inside the Telegram client.

FAQ

What did Clash of The Deep cost to build?

The case study lists a budget of $10,000–50,000, with the project still ongoing. The game shares its economy with the client's existing Telegram title, so it launched as a new vertical rather than a separate product.

Can a Telegram mini app game run well on cheap Android phones?

Yes, but it has to be tested on those phones from the start. Clash of The Deep's early builds lost frames during card animations in the Telegram WebView until the visual layer and redraw logic were reworked.

How do Telegram Stars and TON payments work in the game?

The shop accepts Telegram Stars or TON for Gold cards and skins. Stake rooms use TON only: funds are held when a player joins, paid out automatically after the match minus commission, and refunded in full on any cancellation.

Who was on the team?

A project manager, a frontend developer, a backend developer, a QA engineer, a UI/UX designer and a 2D designer. Todor3D owned design, frontend, backend, payments and QA.