Skip to content
Boris Truyens

A flange and a starfighter

A sci-fi flight game in Godot whose ships are not drawn but modelled in Fusion 360, by scripts.

The cockpit of a Vanguard fighter, with the HUD.
The cockpit of a Vanguard fighter, with the HUD.

Most games make their models in tools for artists: Blender, Maya, ZBrush. I know those tools less well than the tools of the workshop. So I asked a different question: what if you design a starfighter the way you design a part?

CAD as a paintbrush

In Project Vanguard the ships are generated by Fusion 360 scripts. A hull is a loft between sketched cross-sections, a wing an extrusion of a dimensioned sketch, a conduit a sweep along a path. Parameters set the proportions. Change one dimension and the whole ship adapts, like a parametric part.

A top view of a fighter as a blueprint

Then the model goes through a pipeline: through a bridge to Fusion and a bridge to Blender (small HTTP servers that accept commands) it is simplified, textured and made ready for the game engine. It is the same thinking as a CAM workflow: one source model, several destinations.

The game

  • A campaign of eight missions with cutscenes, a debrief and three difficulty levels.
  • Agility trials: time trials through gates, against a ghost of your best run.
  • Playing together: split screen, a 1-versus-1 arena, LAN, and internet lobbies found through the website.
  • Pilot accounts with cloud saves, leaderboards, badges and a daily streak, built on Cloudflare with a D1 database. Without an account, everything also works offline.

On every new version tag, an automated pipeline builds the game for Windows, Linux and macOS.

Your phone as a flight stick

The nicest detail: press F3 and the game shows a QR code. Scan it with your phone and a web page opens with a touch stick, a throttle and optional tilt steering. Phone and game talk directly over a WebSocket on your own network. No app, no install.

It is a recurring idea in my projects: the most powerful device everyone carries is also the least used input device.

What security taught me

When the game got accounts and a website, it also became a target. My own review found a stored XSS hole in squadron names and on the leaderboard, and an updater that unpacked a downloaded zip without checks (“zip slip”), which could let files land outside the game folder. Both are fixed: input is sanitised, downloads are verified, the site has a strict Content Security Policy.

A flight game seems far from a workshop. But the tools are the same: parametric models, a fixed pipeline from design to execution, and checking before you release anything.

See Project Vanguard →

Where this leads

This project shares threads with others. Follow one.