Porting old Llamasoft games to iOS

Overview

At the beginning of November I took some time to bring some old Llamasoft releases back to modern iOS. They turned out rather well and are available now, for free, on the App Store!

Gridrunner++

  • Free on App Store https://apps.apple.com/app/id6829940450
  • One of Jeff Minter’s Pocket PC games (2002)
  • 240×320 portrait, stylus controlled
  • Later released on Windows and Mac OS X
  • Stopped working when Mac OS X went 64-bit

Minotaur Project

I took the same approach for both:

  • Ghidra to turn the original binaries (x86 for Windows, ARM for iOS) into P-code, which my own tools translate into C
  • A small runtime shim to stand in for the system the games expect
  • Xcode to build the new source as native apps for iPhone, iPad (and iPad-on-Mac if you have Apple silicon)
  • The game logic is the original game logic, so it plays exactly as it did back in the day
  • I took the opportunity to refine/modernise the games in certain sympathetic and subtle ways
  • Possible only because the Llamasoft games are built using their own engine, not Unity etc.

I’d describe these as somewhere between a port and a remaster, and they were a ton of fun to do!

None of these games were included in either the recent Llamasoft: The Jeff Minter Story (for modern consoles) or The Llamasoft Collection (for Evercade devices).


Gridrunner++

The Pocket PC original was played with a stylus: the ship flies to where you point and fires by itself. This control scheme is still available in this new release, and I even added the ability for the ship to fly to a point just above the finger. But during play I found that fingers are much fatter than styluses, so I added a trackpad control scheme as the default control method. The Sheepiezapper power-up is on buttons in the corner of the trackpad, or by touching with a second finger. You can switch the trackpad off and move the game screen to the bottom (so it’s easier to reach), middle, or top (to use something like 8BitDo FlipPad).

Given that GR++ was never on iOS, I took the opportunity to add Game Center leaderboards and achievements. Taking inspiration from later Llamasoft games, there are Pure and Casual leaderboards: from level 1 with no points is Pure, anything else is Casual. Artwork for each achievement is a crop of a screenshot captured from the moment it is earned, by a CPU player “bot” I wrote to play the game. It’s not a great player, but it is perhaps more consistent than I am! I also added Attract Mode which uses the same code to demonstrate random levels.

In a small future update I’ll add Endurance mode and 60Hz refresh rate.


Minotaur Project

Having done GR++ I was buoyed by the possibilities, and wanted to get my other favourite Llamasoft game running again: Gridrunner iOS. But this was a different kind of challenge. I ended up with a thin shim that stands in for everything the games called: libc, the C++ runtime, a little Objective-C runtime, OpenGL ES, CoreGraphics, CoreText, audio. As a result the games think they’re running on a 2011 iPhone inside of a new native shell.

At this point I thought it would be cool to do the other eight Minotaur Project games too! But releasing nine apps on the App Store is my idea of hell. So I decided to do them as one app containing all nine games, with a sort of home screen launcher:

  • Caves of Minos (2012)
  • Deflex (2011)
  • Five a Day (2012)
  • Goat Up (2011)
  • Goat Up 2 (2013)
  • Gridrunner (2012)
  • Minotaur Rescue (2010)
  • Minotron: 2112 (2011)
  • Super Ox Wars (2012)

Once all nine games were working I thought these games need to live beyond my phone screen, so I approached Jeff to ask permission to release them for free on my App Store account. He agreed, and mention that he was excited he’d finally have some decent games to play on his modern iPad!

Six of the games (Caves of Minos, Deflex, Five a Day, Goat Up, Minotaur Rescue, Minotron: 2112) used OpenFeint, which is long dead, so I removed it and replaced it with Game Center. The later three (Goat Up 2, Gridrunner, Super Ox Wars) already used Game Center. The original leaderboards and achievements return for each game (Goat Up 2 has leaderboards only).

The native resolution of the Neon engine was increased from 512×512 to 960×640 which means everything is sharper, or less blurry, depending on your point of view.

One thing I found interesting was to track the progress of the Neon engine across all these games. I found four distinct versions:

  • Deflex, Minotaur Rescue: the earliest version
  • Minotron: 2112, Caves of Minos, Five a Day, Goat Up: OpenFeint, with text drawing capability
  • Super Ox Wars: Game Center, built for armv6 and armv7
  • Gridrunner, Goat Up 2: Game Center, built for armv7 only

Minotron: 2112 in particular received some extra love, so that the black border screen edges now double as virtual joystick areas allowing proper twin stick control. I also added a new option for more precise collisions in Minotron (and for enemies in Goat Up), which means pixel-precise collisions rather than rough circle collisions which makes a real difference for game feel.


Both

The games support all the modern iOS conveniences that players might expect: resume (effectively save states, so the app can be quit and your game will be there when you open it up again), modern iOS game controllers and hardware keyboards (either new or mapped through existing iCade controller support) with sensitivity settings, external display (the game is shown on the big screen, and in Gridrunner++ the phone becomes the controller, so you can play it on RayNeo AR glasses or the like), proper audio support so you can listen to your music with or without the game audio over the top, optional scanlines or CRT shader, shared consistent settings interface between games. And I took the time to adapt the web strategy guides into a proper “How to Play” section for each game. New games also start more cleanly than the originals, as some variables were not being reset.

Both apps were optimised for size and downloads are roughly 2 MB for GR++ and 20 MB for the Minotaur Project, and they run on iOS 14.2 and up (for now; Apple will force this to be raised in future).

--
Found this educational? Consider buying me a coffee.
--
Comments: Twitter , Bluesky , Mastodon