Why a cafe needs a game
Lukma started as a digital menu and grew into a restaurant platform: a menu in three languages, a waiter screen, a kitchen screen, and an admin panel. One more task remained: make the visit memorable and delight the guest right on the spot
Discount cards and loyalty programs defer the benefit to later and require separate infrastructure. I chose a simpler path: a short browser game with a gift here and now. The guest scans a QR code at the counter, plays for a minute or two, and picks up the prize right away
The Batumi waterfront as a playing field
Batumi Run is a runner along the waterfront. The character runs forward, and the guest controls it with swipes: up to jump, down to slide. Two gestures are easy to learn from the first run
The obstacles come from the city's context: crates, flower pots, qvevri wine barrels, puddles, and a sleeping dog. You have to jump over them. Under awnings, banners, and seagulls, you slide through. The speed gradually increases, and you can collect coins along the way
The goal is visible right away: the first screen says how many points you need to score, and the counter during the run shows progress toward winning
The gift is at the counter, right away
If the guest reaches the required score, the server issues a coupon automatically. It appears on screen with a timer: “Show at the counter. Valid for another…”. The guest walks up to the barista and gets the gift during the same visit, with no need to come back for it. The coupon is redeemed by a staff member and stays in the analytics
In Lukma's admin panel you configure the prizes, drop probability, stock, and expiry. When the day's prizes run out, the game says so honestly and suggests coming back tomorrow. It can also be paused entirely without touching the code
Anti-cheat without registration
The game doesn't ask for a login or phone number, otherwise nobody would get to it. So the limits work at the device level. The result is sent to the server along with a device fingerprint and the run duration, and the server decides whether a prize is due
The server checks the result against the winning threshold, the daily limit, and the frequency of attempts. For every refusal the player gets a clear answer: “almost, you were a few points short,” “too fast,” “come back tomorrow for a new prize,” rather than a silent error
A browser's private mode hides the data the limits are based on, so in incognito the game politely asks you to open a regular window. The protection is noticeable only to someone trying to get around it
A lightweight page for any phone
The game is written in plain Canvas 2D and JavaScript, with no game engine. Characters and obstacles are drawn once into offscreen canvases at the right pixel density and then simply copied into the frame. This saves resources on older phones
The sounds are synthesized with Web Audio, so no audio files are needed. The muted state and the chosen language are remembered. The game works only in portrait orientation, and on a computer it suggests opening the page from a phone
The game as part of the platform
Batumi Run lives in the same system as the menu, orders, and admin panel. So the game doesn't need separate maintenance: prizes, limits, and redemptions are in the same place where the cafe team manages dishes
I used a similar approach for BOBO and Mephaitone: server-side code issuing stayed, while the mechanic was adapted to each brand