Forty-seven games for a console that never existed
UFO 40 is my fan tribute to UFO 50: a pretend 1980s console with a library of cartridges, written in plain C, running on a PS Vita, on Windows and in the browser.

UFO 50 by Mossmouth is a collection of fifty “lost” games from a console that never existed. I love it, and it gave me an idea: UFO 40, my own pretend 1980s console, with its own library of cartridges.
It started as a joke port: a shorter name, fewer games, forty slots. Then it kept going. The name stayed 40; the library didn’t. Version 0.12.0 has 47 cartridges in a 50-slot library.
A tribute, not a copy
Each cartridge is a tribute to one UFO 50 game and sits in the slot with that game’s number. It plays by the same rules: the controls, systems, enemies, items, scoring and goals follow the original as closely as written sources describe it.
Everything you see and hear is new: the names, the characters, the pixel art, the levels and the chiptune music. UFO 40 contains no code, art, music or levels from UFO 50. Where the original builds its levels at random, the tribute has its own generator. Where the original’s levels are hand-made, the tribute’s are hand-made too, from scratch.
Every cartridge has a design document that lists each mechanic and where it comes from, and each one was checked against its original by an independent review, then fixed.

One core, three machines
The whole console is written in plain C, with no dependencies in the core:
- a 320×180 indexed-colour software renderer
- a four-channel chiptune synthesiser with its own music format
- a scene system and a save system
A thin SDL2 layer runs that same core on a modded PS Vita, on Windows and Linux, and in the browser through Emscripten. Nothing in a game knows which machine it’s running on.
Tests that play the games
How do you test forty-seven games? By playing them, many times, without a person.
A headless build runs the whole console from scripted button presses: no window, no sound card, just frames and checks. Many cartridges have a demo player in the tests that plays with real presses: it clears a game’s first area, wins a whole run, or plays from the title screen to the ending.
The same headless build takes every screenshot and GIF on the project page, so the pictures always show the game as it really is.
As of v0.12.0 that’s 1,388 test scripts and nearly 35,000 checks.
If a test can play the game, it can tell me when I’ve broken it.
How it was made
I should be honest about this part: UFO 40 is vibe-coded. I built it by directing an AI coding assistant, Claude Code, which wrote the code, pixel art, music, levels and tests. My part was everything around it: the research notes on each original game, the descriptions, deciding what’s right, and a lot of play-testing feedback on how each game feels.
It taught me a lot about writing specs that leave nothing to guess, and about how much a good test suite matters when you aren’t the one typing every line.
Play it
UFO 40 runs in your browser: naniiic137.github.io/ufo-40. Builds for the Vita and Windows are on the releases page.
UFO 40 is a fan-made tribute and isn’t affiliated with or endorsed by Mossmouth. If you like it, go and play UFO 50.