The ship's scanner view, a white wireframe grid over dark hills with hexium crystals glowing ahead
All posts

How Hex Ranger is built

Hex Ranger is made by one person, so it leans on some brilliant tools. Here’s a short look at how it fits together, and the open-source work it stands on.

Unity

The game is built in Unity 6, using its Universal Render Pipeline, and written in C#. I’d used Unity before, so it was the quickest way to get a ship flying on a phone and then onto both Android and iPhone.

A world made from code

There are no hand-built levels. Each planet starts from a single number, a seed, and everything else is worked out from it: the hills, cliffs, coasts, forests, the hexium veins and the plinths you restore.

The land is built in squares 400 metres across as you fly, about two and a half kilometres in every direction, and squares behind you are let go. Because it never runs out, the game quietly shifts the world back around the ship as you travel, so the numbers stay small and the flying stays smooth however far you go.

The weather, the time of day and even the music are made the same way. There are no music files in the game. The calm pads and bells you hear are played live by the game itself, so they never quite repeat.

The pieces I didn’t make

  • Blender, the free and open-source 3D tool, for modelling the survey ship and the ranger.
  • Mixamo by Adobe, for the ranger’s animations.
  • Barlow by Jeremy Tribby, the typeface used across the game and this site, shared under the SIL Open Font License.
  • Tolgee, an open-source translation platform, for getting the game ready in other languages.

This website

This site is built with Astro, which is open source, and it loads Barlow through Fontsource. The video clips are cut and encoded with FFmpeg, so your browser gets the smallest version it can play.

Thank you to everyone who makes and shares these tools. You can find the same list in the game, under Settings ▸ Credits.