Stellar Bastion: The Difficulty Curve That Wasn’t There
Stellar Bastion had a problem we couldn’t name. The late game felt slack — you’d invest in turrets, the numbers would climb, and nothing on screen seemed to care. We went in expecting a tuning pass. We came out having found that the wave number was cancelling out of the difficulty formula entirely.
This update is the result: two crash fixes, turrets that actually lead their targets, five sectors that finally do something, and a difficulty system rebuilt on a completely different principle.
The guns were missing on purpose
Start with the one you could feel. Rocks crossing the screen — not coming at you, just passing through — were nearly impossible for the auto-turrets to hit. They’d fire constantly and connect almost never.
The turrets were aiming at where the target was, with no lead at all. At typical firing range a turret shot takes about 15 ticks to arrive, and a rock drifting sideways covers roughly 21 units in that time — against a target radius of 9 to 12. The shot was missing by about twice the size of the thing it was aimed at. Head-on rocks were fine, which is exactly why it read as “sometimes the guns just don’t work” rather than as a bug.
And it was the common case, not an edge case. Of the seven wave movement patterns, four send rocks across the screen on a fixed heading rather than toward the station. Most waves were full of targets the turrets structurally could not hit.
Turrets and defence satellites now solve for an intercept point and aim there. When interception is impossible — a target outrunning the projectile, say — they fall back to the old behaviour, so the worst case is exactly what it was before. Missiles and torpedoes already home, and the main gun is yours to aim, so neither changed.
Two crashes that killed runs silently
The missile battery and torpedo launcher both picked targets from a filtered list of valid enemies, but sized their firing loop from the unfiltered count. If everything on screen was cloaked or held by your tractor beam, they’d reach past the end of the list and throw.
There’s no error handling around the game loop, and the loop only schedules its next frame after finishing the current one. So the game didn’t crash visibly — it just stopped. No message, no death screen. If you owned a Tractor Beam and missiles, which is an ordinary mid-game loadout, this was waiting for you.
While we were in there: the end-of-run handler could fire more than once in a single tick if two things damaged you simultaneously, submitting your score twice; the render loop kept running at full cost forever behind the results screen; and explosive splash damage reduced enemies to negative health without ever killing them, leaving “zombies” that soaked turret fire, still rammed you for full damage, and paid out nothing.
The difficulty curve that wasn’t
Now the interesting one.
Wave pressure was derived from an estimate of your own damage output. More damage, more enemies. That sounds reasonable, and it hid two problems.
The first was arithmetic: the formula never accounted for how many turrets you had. With a maxed turret line it was assuming about 112 HP per second of pressure against roughly 4,950 of actual output. Off by a factor of 44.
The second was structural, and worse. Work the algebra through and the average-enemy-HP term cancels. Total incoming HP per wave reduces to a constant multiple of your own estimated damage — the wave number disappears. We measured it to be sure: for a fixed build, wave 1 and wave 120 both sent exactly 203,091 total HP at the station. It varied 180× across different builds and not at all across 120 waves.
The game could not get harder over time. It could only get harder if you got stronger — which also meant that buying damage upgrades raised the difficulty in proportion, so they partly cancelled themselves out.
Why we stopped tuning
The obvious response is to put the wave number back and retune. We built a model to find the right constants, and it told us the constants don’t exist.
Two things came out of it. Player power saturates: it grows about 390% over the first 25 waves, then only 37% across the next 75, because half the damage upgrades hit caps or cooldown floors by wave 15. And build quality converges: an optimally-played build leads a careless one by only 13–22% at the waves where it matters.
Put those together and a difficulty curve based on wave number has to turn a 15% difference in player strength into a meaningful difference in how far you get. The only shape that does that is a near-vertical wall placed exactly where those builds sit. Every attempt the solver made converged on the same thing: a cliff. Three candidate “curves” turned out to be three different placements of the same wall.
So numeric scaling can relocate a difficulty spike. It cannot smooth one into existence.
Difficulty by demand
Which pointed at the answer. In tower defence design there’s a well-worn ranking: adding more enemies is the weakest difficulty lever available, and changing what the enemies demand of you is the strongest. Now we knew why. Demand is orthogonal to the thing that saturates — a build either has a Scanner or it doesn’t, no matter how far its damage output has plateaued.
Stellar Bastion already had the machinery. Cloaked ships genuinely can’t be targeted without a Scanner. Mines are genuinely invisible. Boarders genuinely latch on and drain the hull. All of it was real; none of it was being used to drive difficulty, and none of it was being explained to you.
Waves now make a growing number of simultaneous demands — one early, four late — drawn from six categories, and the game tells you which ones are live before the wave starts. If you’re covered, it reads ARMOR · DEBRIS. If you’re not, it reads ⚠ NO SCANNER. That part isn’t decoration. Difficulty you can’t see coming is just an unexplained death, which is worse than a game that’s too easy.
Sectors that finally do something
The warp screen has offered five sectors for a long time. Four of them were locked with no way to unlock them, and the one you could reach was flavour text — the game never read which sector you were in.
Each now has a real ruleset. Kepler-442b drags asteroids inward and pays more for them. Veil Nebula cuts your firing range to 70% but extends your scanner, and crawls with cloaked ships. Wreck of the Titan floods you with mine layers and richer salvage. The Void drops asteroids from the spawn pool entirely — ship fleets only, worth more. They unlock as your career-best wave climbs, and that progress now persists between runs.
Honest notes
Two things worth saying plainly.
We left the numeric levers alone. PRESSURE_RATIO and the HP multiplier are untouched, because changing the difficulty system and retuning it in the same breath means you can’t tell which one did what. Demand needs to be seen working first.
And better turrets make the game busier, not just easier. More hits means more credits means more upgrades — and under the current formula, more upgrades still means more pressure. Expect it to feel punchier and more crowded at once. That interaction is exactly what the next tuning pass is for.
Everything above is live now at arcade.echoforge.games/stellar-bastion.