Repeat Blockers
2026 · Game design, UI/UX, prototype · Game design · Godot · UI/UX · PPO · Optuna
Repeat Blockers is a game I am making right now. A match has three layers. In the first one each player leads one hero, and everything the hero does is recorded. Then time rewinds: the hero of layer one becomes a bot that replays its record, and the player takes a new hero. By layer three there are six characters on the field, and four of them live in the past. The past can be broken: when something happens to a bot that is not on its record, a repeat blocker fires and the bot goes off into a branch.
- 3 layers — a match, 20 turns each
- 5 classes — 2 abilities and 2 skins each
- 2 modes — Duel and Time anchors
- 0.064 → 0.021 — spread of hero win rates after tuning
Play
Below is the web version of the game: against a bot, with the tutorial, on the City and Range maps. It is the same as on the game's page and weighs about 30 MB, so it loads on a button. On a phone the game opens in its own tab: it needs a landscape screen.
The idea
It comes from an old note about crystals that record a minute of time inside a dome and then replay it. The main question was already there: what happens if you interfere with the record. The first version ran in real time, as a twin-stick shooter. I played it and saw that with three layers of bots you cannot tell what is going on and have no time to think. The game became turn-based: players take turns, one action a turn. The turn became the unit of the record, so a replay matches to the tile.
Layers and repeat blockers
This is the core rule of the game, and it is easier to show than to tell. Below is the same run of events in three versions: the recording of layer one, layer two where the bot walked back to its record by itself, and layer two where it was rewritten. The timeline under the field is the same as in the game: a row per character, an icon per turn, a broken record drops into its own lane.
Game design decisions
- Turns instead of seconds. One action a turn: move, shoot, grenade, reload, hunker, overwatch, ability or pass. The past can be read, and the future of the bots can be checked: hovering a turn of the timeline shows where the bots will be.
- A blocker has a cause. A record breaks only from a specific event: damage or a knockback that was not there, a blocked path, a dead or hidden target, broken cover, no ammo left. The player can always say why it broke.
- The channel of time. A broken bot can be taken over instead of the layer's hero, who then stands for the turn. Left alone, the bot walks to its recorded spot and the branch collapses. It can rejoin only after a turn in which the player did not take it, otherwise the choice would vanish before the player saw it.
- Energy to rewrite. Taking a bot costs 1 energy, and energy grows with the layer: 0, then 1, then 2 more. Layer one has nothing to rewrite, the last layer has something to risk.
- The last layer decides. In Duel whoever has more survivors in layer three wins. In Time anchors points also count only in the last layer, so the captures of past layers show on the timeline as targets: those are what you rewrite.
- A chess clock. Every turn adds a minute, unused time carries over, and when time runs out the turn is passed. A turn-based game does not turn into waiting.
- Honest cover. Only right next to a wall and only from shots through that wall: a shot from behind or the flank goes through in full. You cannot hunker twice in a row on the same tile, or one wall would decide the whole layer.
- No consequence preview. There was an idea to show what a move would break. I dropped it: in PvP the rival moves after you, and the hint would promise what will not happen.
Heroes and abilities
At first there were nine heroes, then I folded them into five classes: scout, assault, engineer, medic and sniper. A squad of three; the player decides who goes in which layer. Each class has two abilities. The standard one works with the fight: sprint, bazooka, turret, medkit, sniper nest. The chrono ability works with time, and the former separate heroes moved into it: the scout's recall takes him back to where he stood two turns ago; the assault's chrono wall lets only his own team shoot through; the engineer's chrono mines lie in every layer and past bots do not see them, so a mine moved onto a bot's path is a scheduled blocker; the medic's chrono hack knocks a rival bot off its tape through walls and leads her own bot out of harm; the sniper's echo shot repeats in the next layers on the same turn, even if the sniper is dead. There are two skins as well: the standard one and the chrono skin, whose silhouette comes from a former hero.
The tutorial as a story campaign
I planned the tutorial not as a separate mode with hints but as a story campaign that teaches the game and opens it up at the same time. The station «EOS», the AI «Sigma», the project lead and the lab assistant take the player through the anomalies of the «Sphere-122» range. Five chapters, one for each class, two missions in each:
- Puzzle. An anomaly and chrono crystals to collect in a few turns. The anomaly shows the mechanic of the chrono ability before the player gets it: loops send you two turns back, walls flicker every other turn, mines stay invisible until they blow, the crystal repeats recorded shots.
- Fight. A small fight against a bot where the class already has its chrono ability: what the player figured out in the puzzle is now a tool.
- Lab. Crystals buy an upgrade for the class: its chrono ability and chrono skin open in Duel and Anchors. Going through the campaign is the progression of the game.
Character lines are tied to match events: a recall, a mine, a hack, an echo. Besides the main goals there are stars for extra ones, such as collecting every crystal in the first layer. Every mission has a recorded solution, and a test plays the campaign through on its own, like the tutorial. The campaign is in progress: the chapters are drafts and get polished one at a time.
Interface
The game is isometric, like XCOM, with all the surroundings in 3D. The interface is dark, like a navigation screen: panels with bright corners, blue for information, orange for the main action, violet for Anchors. On the left a column of actions with their keys, at the bottom the heroes, the turn queue and the timeline, on top the alerts: «timeline broken», «rival is rewriting», «timeline restored». The end of a layer is an event: the crystal shatters, the frames of the layer play backwards with a rewind effect, the crystal grows back. On a phone the same interface is packed tighter: panels behind buttons, gestures instead of camera buttons.








The crystal and the rewind
The end of a layer is an event, not a results screen. The crystal in the middle of the dome shatters, then time runs backwards: a rewind shader covers the picture like an old tape (rows jitter, bands tear, colours split, a light bar runs up the screen), and everyone who walked the field backs up to the start of the layer. Below is this scene from the game as a separate looped Godot build. Here the shards rewind back into the crystal; in the game itself it grows back.
UI kit
The palette, buttons, mode cards, squad, action column, alerts and HUD icons are taken from the game code: colors from the interface theme, icons from its set, class portraits and their chrono skins from the squad menu, numbers from the current balance.
Balance: PPO and Optuna
Heroes with different numbers cannot be evened out by hand: every battle is three heroes against three, and one layer changes another. So the game counts the balance itself. Godot starts without graphics and plays a bot-against-bot battle in 0.3 seconds by the same rules, and after the battle the whole chain of actions is parsed: damage, kills, abilities, who won. The balance error is the root mean square deviation of hero win rates from 50 %.
The bot: PPO
First you need a bot you can trust: if the bot plays the sniper badly, the sniper looks weak. I trained it with PPO in self-play. The policy is simple and transparent: out of the 12 best options by the heuristic the bot picks through a softmax over 12 features: action type, tile danger, health, taking over a bot. The reward is +1 for a win and −1 for a loss, plus the share of damage, so an even lost battle teaches too. The gradient of a linear policy is computed exactly, with no neural network.
The honest outcome: over 12 iterations of ~10,000 decisions the bot reached the level of the greedy heuristic, 43-53 % wins against it, and did not beat it. But the weights showed what matters in the game. Most of all the bot learned to avoid tiles under fire, stopped hunkering for nothing and shot more often. That was enough for the balance: the bot plays every hero equally sensibly and cannot be fooled by one hole in the heuristic.
The numbers: Optuna
The numbers are tuned by Optuna with the TPE sampler. It is a Bayesian search: after each trial it splits past trials into good and bad ones, builds a distribution for each group, a sum of bell curves around every value, and tries next where good trials are more likely than bad ones. The second tab shows it on real data: move the slider and the distributions narrow as the search goes.
- Each trial is 240-400 battles with random squads, the same squads for every trial, so the comparison is fair.
- Half of the battles are an intermediate check: clearly bad trials are cut off (MedianPruner), those are the grey dots on the chart.
- The error carries a penalty for drifting from the design: of two equally even variants the one with fewer changed numbers wins.
- The search runs in a ±50 % window around the designed number, and the essence of each hero is frozen.
The last point turned out to be the main one. The first search suggested cutting the sniper's damage from 30 to 15, and by the numbers it was even, but a sniper with 15 damage is no longer a sniper. I froze his damage and nest setup and ran the search again. Another time Optuna found a turret range of 4, and a test showed that at that range the turret never fires: a hole in the rules looked like balance. The lesson: an optimizer finds numbers well, but what must not be touched in a hero is the game designer's call, and tests must catch degenerate solutions. For five heroes the win rate spread fell from 0.060 to 0.023, for eight from 0.064 to 0.021, every hero within 46-53 %.
How the prototype works
- Godot 4.5: the battle simulation is separate from the rendering, so the same rules run in the game, in the tests and in the balance search.
- The record keeps not only the action but also what happened to the character: so a layer replays to the tile, and any difference is a blocker. Tests check that a layer with no interference replays exactly.
- Random maps: obstacles are placed on one half and mirrored to the other, so the sides are equal.
- A web version without threads, a Windows build and a phone mode: a tap previews a move, a second tap makes it, a pinch zooms.
- Sounds by Kenney (CC0), the city from Quaternius and Majadroid models (CC0).
What is next
Network 1v1 already works in the Windows build. Next in line: network play in the browser, an Android build and the full campaign. There was also a second branch, Flow: time runs only while the player presses keys, with first-person aiming. I played it and shelved it: the layers did not feel like anything, it was just a strange shooter. That is a result too: the strength of the game is that the past can be read and planned, and that takes turns.
