Published 29 November 2026 · 5 min read

How we built four Christmas browser games

A new game comes out on game.dhmo.cz every Sunday of Advent. They are ours, made for family, friends and business partners — and at the same time a test of what a small team with AI can do in a few days. This is what is behind them, and above all how they are tested.

    In short
  • Playability comes first, with no graphics. If it is not fun as grey squares, no artwork will save it.
  • The game logic is one file that runs identically in the browser and on the server: a fixed step, a seeded random generator and its own maths functions instead of the system ones.
  • The server does not accept a score, it replays the session itself. What that does not stop is a bot that really plays — those results are flagged for human review instead.

What we actually built

Three finished games and a fourth on the way, all in the browser with nothing to install: a one-tap sleigh flight, a 3D night adventure and a logic puzzle built on rotating tiles. They run from a single Node.js server, share the player nickname, an optional account via an e-mail link, and a combined leaderboard in which each game is worth at most a thousand points based on your best result.

All of it sits on plain JavaScript over an HTML5 canvas. No game engine: there is nothing to download before the first frame, so it starts on a slow connection and on an older phone.

Playability first, graphics afterwards

Every game started as grey squares. It is an uncomfortable rule, because everything looks miserable as grey squares, but it is the only way to tell whether the controls themselves are fun. If it is not fun like that, artwork will not save it — from then on you are only painting expensively over something nobody wants to play.

The same goes for difficulty. Numbers that look reasonable in a table are somewhere else after five minutes of play. You tune them on the finished mechanic, and then again based on where players actually stop.

Artwork, music and voices from AI

We built the graphics, music and character voices with the help of AI, and the scripts for it live in the repository next to the game, so how each asset came about can always be traced and repeated. Images from Flux 2 Klein, voices via Qwen TTS and OmniVoice, music from ACE-Step. For the typeface we had to write our own script, because the Christmas font had no Czech or Polish characters.

This part is now the fastest, which makes it worth saying what is not. Playability is not fast, balancing difficulty is not fast, and neither is the leaderboard. Those three decide whether anyone finishes the game.

One game logic for the browser and the server

The leaderboard rests on the server not trusting the client. The browser sends only the list of steps at which the player tapped, plus the random seed; the server replays the session and computes the score itself. The one condition is that both sides arrive at the same number.

That is why the game runs on a fixed step and uses its own maths functions instead of the system ones: sine and square root differ between Chrome, Safari and Node in the last bit, and after a few hundred steps that is enough for the two replays to diverge and an honest score to be thrown out.

What the server rejects — and what it cannot

  • An unknown or already used session, and a recording that does not match the seed.
  • A recording submitted sooner than the game could possibly have taken, or much later.
  • Tapping faster than a human hand manages, and requests from another site.
  • Too many sessions from one address; three cheating attempts earn a day-long ban.

What this does not prevent is a program that genuinely plays the game in real time. Rather than pretend otherwise, such results are only flagged for human review: a rule-driven bot taps at the same height above the obstacle every time, picks an upgrade within two tenths of a second, or solves the puzzle without a single wasted move. The thresholds are an estimate verified against our own test bots, not against recordings of real players, and nothing is deleted or hidden because of them — the reason is simply stored with the result.

How it is tested

With a single command. A test bot plays through every level and boss fight to prove they can be finished at all, then the replay on the server is checked against the browser for the same number, and finally the running server is attacked with attempts to cheat. A second script does the same from outside: it submits forged scores, tries to overwrite the leaderboard, reaches for server files and works around the limits. It writes nothing to the leaderboard.

The nickname filter is tested separately — it keeps profanity in all eight languages out of the leaderboard, including spellings with digits and dots — and so is signing in with the e-mail link. Prizes are tied to a verified e-mail address and a matching recording; for anything genuinely valuable, only a live final is certain.

What to take from it

A simple one-mechanic game is a day or two of work today. But the time did not disappear where people expect: it disappeared from graphics and sound, not from playability and not from the server side. As soon as there is a score to play for, the leaderboard is the most expensive and most fragile part of the whole game — and also the reason people come back.

The character sheets, 3D reference and level overview are in the project, and the games themselves at game.dhmo.cz; how we build the same thing for a brand is covered by our browser games service, and the marketing side is on the advergames page at dhmo.cz.

Contact

Have a project? Write to us.

A few sentences about what you are dealing with is enough. We reply within one working day with questions and a proposed approach.

What do you need? (pick any)

We reply within one working day. No automated sales sequence.

How we built four Christmas browser games | Developer Online