All work

Rift

Client work for Madrigal Ltd, unreleased, Jan 2026 – present

Rift is an online turn-based strategy game in the spirit of Polytopia: players grow cities, research a tech tree and fight over an isometric map, in matches that can run over several days. The game is not released yet, so everything on this page is work in progress. I joined in January 2026 as a freelancer for Madrigal Ltd in London and work across the whole stack, plus project management, code reviews and QA.

Role
Freelance developer
When
Jan 2026 – present
Client
Madrigal Ltd, London (formerly S Tier Ltd)
Status
Unreleased, work in progress
A Rift match on turn 10: three cities linked by roads, units spread over grassland, forest and mountains, and unexplored tiles under clouds

What I built

  • UI and UX: many in-game screens, popups and controls moved from a generic toon look to a cleaner, translucent style with a more readable font. Countdown icons for temporary bonuses, and simpler lobby cards sorted by whose turn it is and which deadline comes first.
  • Game feel: bouncy tile selection, coins that fly from where the gold was earned into animated counters, and 40 sound hooks that a sound or game designer fills in the Rift Editor without code changes.
  • Online modes across the client, the Node.js relay and Azure Functions: casual and ranked matches, free-for-all matchmaking for three or four players, a 2v2 team mode, a rating per mode and a match history that loads in pages.
  • Refactoring: the largest classes (units, buildings, players, tiles) split into small modules with my open-source Modulize package. The unit class went from 1,128 to 412 lines.
  • A .NET console tool that deletes outdated game data from Azure storage: dry run by default, only whole games, counts checked before and after.

The hard part

Leaving a large map froze the game for almost five seconds. Sixteen times the tiles took about 190 times as long, so something grew with the square of the map size. The cause was thousands of tile components unsubscribing one by one from shared C# events: each removal searches and copies the whole list of handlers. I replaced those events with a subscription set that adds and removes in constant time and a dispatcher that routes by id. Unloading the game scene went from about 4.65 s to 90 ms.

Results

  • 4.7 s to 0.55 s to leave a large map and get back to the menu, fade included (measured in the Unity editor).
  • Match history in pages: for a player with 1,000 finished games, the lobby’s list of games shrank from 50.7 KB to 0.7 KB, so long histories stay under PlayFab’s response limit.
  • Resigning outside your own turn no longer collides with the other players’ moves: one writer per turn, as the order list expects.

Tech

Unity 6, C#, NUnit, DOTween, Azure Functions (.NET 10), PlayFab, Azure Table and Blob Storage, Node.js WebSockets, React, Claude Code