Inspiration

Kids and hobbyists make retro-style games in Pyxel, a Python engine with a 16-color, 8-bit look. But those games only ever live in a window. The machines that inspired the look, the 1983 cartridge consoles, are dead: no current toolchain, no Python, 2 KB of RAM. We wanted a Pyxel game to come out the other end as a real cartridge you can hold.

What it does

Chronomicon converts a Pyxel game into a standard 8-bit cartridge ROM (iNES, NROM: 32 KB program + 8 KB graphics).

  • chrono convert reads the .pyxres file and a small manifest and produces 2bpp tiles, nametables, attribute tables, palettes and 8x16 metasprites.
  • chrono build compiles the game and our runtime with cc65 and writes the ROM. Same inputs, same bytes.

The ROM plays in the browser player, in any emulator, and on real 1983 hardware through a flash cartridge. The demo game, TEN YEARS' VOW, goes from Pyxel art to a cartridge in the video. Today the game logic is written in C against a small Pyxel-like runtime API (btn, btnp, text, meta_spr, sfx); translating the Python logic automatically is next.

How we built it

Spec-first with Kiro IDE. For each part we wrote a short seed with the scope and the hardware traps we already knew. Kiro turned each seed into requirements (EARS), a design and a task list, then implemented the tasks with unit tests and 15 property-based tests (Hypothesis), all passing. Six steering files carried the product rules, the contest rules, the toolchain limits and 12 known hardware pitfalls into every session. ROM tests run the real .nes in a headless emulator and compare frames with a reference renderer.

Kiro built the converter, the ROM builder, the runtime and the tests. Claude drew the pixel art, wrote the demo game code, the browser emulator and the flash-writer tools. We built the hardware and tested on the real console. Details: docs/KIRO_USAGE.md

Challenges

  • The 8-bit limits do not bend: 4 colors per 16x16 block, 8 sprites per line, 32 KB of code. Guessing palettes per tile broke walls into mixed palettes, so palettes became explicit in the manifest.
  • A palette mirror at $3F10 silently overwrote the backdrop color. Kiro turned the fix into a property: "byte 0 of every palette is the backdrop".
  • On the real console the first cartridge showed a white screen. Small test ROMs (a color cycle, stripes, a walking address test) traced it to two crossed wires in our hand-wired flash-writer adapter. After fixing that, the unchanged ROM ran on the first try.

What we learned

Write the pitfalls into steering on day one. Start each spec from a narrow seed, not a one-line prompt. And test on the real target early: a test ROM on real hardware finds what no emulator will.

What's next

Translating Pyxel game logic, scrolling, music from Pyxel's sound data, and a classroom kit: make a game on Monday, take home a cartridge on Friday.

Built With

Share this project:

Updates

Submission history