It's been a busy few weeks inside Ninestein, my Terrahawks-inspired vector wireframe arcade game built in plain HTML, Three.js and Web Audio. This update is a big one: new enemies, smarter boss fights, a completely rebuilt city, and one design decision that turned into a week of chasing bugs. Here's what changed, and what went wrong along the way.
What's new
The Zeaf Bomber
A new heavy Zeaf variant now patrols high above both Battlehawk flight and Hudson road patrol. It telegraphs every drop with flashing bay doors, a downward targeting beam and a reticle on the ground, then releases Cuboids that fall, tumble and stack into new obstacles. Bomber-dropped Cuboids are now proximity mines: they sit on the road and only detonate if Hudson gets close, unless you shoot them first for a chain-reaction bonus.
Risk-reward scoring
There's now a chain multiplier that climbs from 1x up to 8x when you destroy targets quickly, and resets the moment you take damage. Skim a building, gantry or Cuboid stack without touching it and you'll get a +250 CLOSE SHAVE bonus with sparks and a chime.
New weapons and handling
- Hawkwing homing missiles: hold the secondary fire to paint up to four targets, then release to launch curving missiles at all of them at once.
- Hudson EMP pulse: a rechargeable cyan shockwave that shatters Cuboid formations around the car.
- Ram-dash: a quick sideways lunge with a brief shield.
- Heavier Hudson: spring-based body roll and pitch, so the Rolls-Royce leans into corners and dips under braking.
Smarter Mothership boss fights
Every boss attack now has a 0.8-second warning: the firing turret flashes white and red, a warning line traces exactly where the shot will go, and a rising charge-up tone plays. Shots follow the line you were shown, so dodges feel fair. The final Central Hub fight now has two phases. First you destroy six outer extensions; then the armour plates swing open to reveal a spinning core, while rotating laser barriers sweep the arena.
Seamless vehicle switching
Switching between Battlehawk and Hudson no longer wipes the world. Enemies, gantries, projectiles and pickups all stay where they are, even mid-corner. Hudson launches straight up into flight, and Battlehawk drops onto the road with a suspension bounce and sparks. The camera blends smoothly between the two views.
A rebuilt city
The old layout had rows of buildings overlapping each other. It's now a single row of stepped skyscrapers on each side of a wide six-lane boulevard. Each has a podium at street level and a tower set back on its roof, with open cross-streets every few blocks and overpasses on proper support pillars.
The problems (and there were a lot)
Scaling the Battlehawk against Hudson
The biggest lesson of this update: I decided the Battlehawk should be properly huge next to Hudson, so the car would be the 1:1 reference and the aircraft would be many times its size. On paper that sounded cinematic. In practice, scaling the Battlehawk relative to Hudson created a long chain of issues, because almost every system in the game had been tuned around the original ship size:
- Camera framing: at 8x the ship filled the right-hand side of the screen. Pulling the camera back helped until it went past the point where buildings get recycled, and then whole buildings vanished right in front of you.
- Enemies at the wrong height: the flight band moved up into the skyline, but Zeafs were still spawning down near the street, so dogfights happened far below the ship.
- Phantom damage: players took hits flying over rooftops without touching anything. The cause was that many buildings taper towards the top (stepped setbacks, spires, sloped roofs), but their collision boxes were full-width blocks all the way up. You were crashing into empty air.
- Clipping into buildings: the sideways limit didn't account for the wingspan, so wings slid into the podium walls at street level.
- Hit boxes: a giant ship with a simple sphere hitbox felt unfair, so it needed a tighter fuselage hitbox with wingtip grazes counted as bonuses instead of crashes.
Each fix uncovered the next problem. In the end I scaled the Battlehawk back down to about 2.2x Hudson's width, rebuilt the collisions so they follow each building's real shape and height, made the wall limits depend on altitude, and only recycle buildings once they're actually behind the camera. It's a good reminder that one "simple" scale change can ripple through cameras, physics, spawning and level layout all at once.
Other bugs squashed
- Long-range mine damage: bombs dropped far down Hudson's lane were hurting the car instantly. A landing bug was resetting each mine's position to the car's own spot on the road the moment it touched down.
- Hudson's rear window: the wireframe Rolls-Royce showed a see-through gap in the greenhouse that took several attempts to seal properly.
- Mid-jump steering: Hudson could still drift sideways in the air. Steering is now locked during jumps.
- Road corners snapping straight: turns now ease out smoothly instead of jumping back to a straight road.
- Proximity alerts: the warning used to fire when flying parallel to buildings. It now only triggers when something is directly ahead and less than a second away.
What's next
With the scale "Almost" settled, I'll be playtesting the new city layout, tuning the boss fights against the smaller Battlehawk, and making sure enemies feel right at the new flight heights. As always, if you spot something odd while playing, let me know.
Comments (0)
No comments yet. Be the first to comment on Smiggy's article!
Leave a Comment