Breakdown · Solo project
Minimalists
A 3D real time strategy game stripped to its essentials: capture structures, commit forces by percentage, and play six AI personalities in anything from a duel to a four way free for all.
- Opponents6 AI personalities
- Matches1v1 to 4-way
- Commit25 / 50 / 75 / 100%
- StructuresHouses, turrets, HQs
Overview
A node conquest RTS, pared right back
Minimalists is a node conquest RTS. Each map is a handful of structures (houses, turrets, headquarters) and every structure holds a live unit count. You grow your force by holding structures, and you take new ones by sending units at them. There is no fog of war, no build order and no resource screen, so every match comes down to where you commit and how hard.
The presentation follows the same rule. Colour is ownership, shape is function, and the number floating over a building is its entire status readout.
Mechanics
Committing forces by percentage
The core strategic verb is the send: click a structure you own, click a target, and a slice of your garrison marches. The size of that slice is set by a commitment slider of 25%, 50%, 75% or 100%, which turns every attack into a risk decision. Full commitment captures faster but leaves the source structure exposed; small probes are safe but feed the defender's regeneration.
Structure variety layers on top: houses generate units over time, turrets project defensive power over their surroundings, and losing a headquarters is losing the match. Structures can also be upgraded, raising their capacity and making map control compound.
Opponents
Enemy AI that plays the same game you do
The AI has no extra information. It wins by making the same commitment decisions the player faces. Each opponent continuously weighs its options: which neutral structures are cheap to take, which enemy structures are poorly garrisoned, when to reinforce a border house and when to mass for a push on a headquarters.
It scores every pair of one of its own structures and a target it could take, nearer and weaker first, with a bonus for neutral ground.
foreach (var sourceNode in potentialAttackers)
{
foreach (var targetNode in targets)
{
int requiredUnits = targetNode.UnitCount + OFFENSIVE_ATTACK_MARGIN;
// Check if the source node has enough units for a successful attack.
if (sourceNode.UnitCount > requiredUnits)
{
float distance = Vector3.Distance(sourceNode.transform.position, targetNode.transform.position);
// The score prioritizes closer and less defended targets. Neutral nodes get a bonus.
float score = 1000f / (distance * (targetNode.UnitCount + 1));
if (targetNode.Owner == GameManager.Instance.unclaimedFaction)
{
score *= 1.5f; // Prioritize expansion into neutral territory.
}
if (score > bestAttackScore)
{
bestAttackScore = score;
bestSourceNode = sourceNode;
bestTargetNode = targetNode;
}
}
}
}
Then it commits through the same SendUnits call the player's slider drives. It sizes the attack from what
the target is actually holding plus a margin, then clamps the result,
which is what stops it either trickling in one unit at a time or
emptying a node it still needs to defend.
if (bestSourceNode != null && bestTargetNode != null)
{
// Send a calculated percentage of units to be efficient.
float unitsToSend = bestTargetNode.UnitCount + OFFENSIVE_ATTACK_MARGIN;
float percentage = unitsToSend / bestSourceNode.UnitCount;
bestSourceNode.SendUnits(bestTargetNode, Mathf.Clamp(percentage, 0.1f, 1.0f));
return true; // Offensive action taken.
}
That is one of six. Each opponent is its own AI personality: a priority-list attacker, a pure scorer, one that coordinates multi-structure pushes, an economy-first generalist, a momentum player that shifts behaviour depending on whether it is winning or losing, and a warlord that sorts the map into frontline, support and economic structures relative to where its enemies are massed.
The mode that shows this best is the four way free for all, where a single match can pit several of those different brains against each other at once: factions expanding into the same contested middle, punishing each other when they spread too thin, and turning on whoever looks weakest, the player included.
Design
Designed to be read at a glance
The whole board is always visible, so it has to read at a glance. The game sticks to strict visual rules: one colour per faction, one silhouette per structure type, one number per building. The menus and the match flow follow the same rules.
When you send units, the move itself is the feedback. The particles that represent them are mapped onto the actual navigation path, repositioned and turned to follow each corner and the slope of the ground, so a send follows the route its units will actually walk, not a straight line.
In hindsight
What I'd change
The six personalities are six separate classes with no shared base. Each one reads the board for itself, so the code that finds my structures and the targets around them is written six times. I would pull that into one place and leave each personality only the part that makes it different: how it scores a move.
The scoring itself is a handful of constants in the code, like the
1000f and the 1.5f in the excerpt above.
They belong in data, where they can be tuned without a recompile
and compared between personalities.
The AI is also not quite bound by the player's rules. The player commits in four steps, 25 to 100%, and the excerpt above passes any fraction from 10% upward to the same call. It is a small advantage, and one the player does not get.