Repeat Blockers

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.

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

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:

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.

Main menu: modes and squad
Main menu: modes and squad
Layer 1 is recorded from scratch
Layer 1 is recorded from scratch
The crystal shatters, the layer is recorded
The crystal shatters, the layer is recorded
Layer 2: bots of the past and branches on the timeline
Layer 2: bots of the past and branches on the timeline
Time anchors: timeline broken
Time anchors: timeline broken
A checkpoint turn in Anchors
A checkpoint turn in Anchors
Layer 3: six characters on the field
Layer 3: six characters on the field
A blocker in layer 3
A blocker in layer 3

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.

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

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.

Links

Other projects

Contact