- Assembly 53.6%
- C 35.4%
- Zig 5%
- Python 4.4%
- Shell 0.7%
- Other 0.9%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| .zed | ||
| docs | ||
| journal | ||
| jsdos | ||
| packaging | ||
| scripts | ||
| src | ||
| tools | ||
| .bochsrc | ||
| .gitignore | ||
| build.zig | ||
| LICENSE | ||
| MANUAL.md | ||
| MANUAL.TXT | ||
| README.md | ||
| THIRD_PARTY_NOTES.md | ||
Build the rails. Harvest the planet. Fill the rocket.
Cortex Labs is a small sci-fi logistics strategy game for classic x86 PCs. Build
rail networks, use cargo pods to collect alien resources, and refine green
Neurofung to fill and launch the rocket. The game is written in assembly, runs
as a DOS .COM program, and can boot directly from a floppy disk.
Play
Core Features
- 6 fixed seeded maps, plus a randomized map
- Rail-building logistics across a large 128x128 alien world
- Cargo pods that move resources through player-built rail networks
- Stations, switches, collectors, extractors, silos, refineries, labs, radar, and pod factories
- Three resource types to extract, transport, store, and spend
- Finite resource deposits that never regrow
- Refinery system: turn green Neurofung into rocket fill progress
- Laboratory upgrades for faster pods, faster extractors, longer extractor range, and bigger silos
- Resource storage limits expanded by building silos
- Fog of war and radar visibility expansion
- Mouse gameplay with keyboard shortcuts
- Victory goal: fill the rocket and complete the mission
Story
Earth's last unaging generation is dying.
For three decades, Cortex Labs has chased Neurofung — a wild organism found only on Kepler-486i. A single gram can extend cognition and cellular life. A full rocket could change the fate of humanity.
You are Orbital Commander: the remote mind of an automated mining expedition.
Harvest. Refine. Launch.
Build
Requires FASM 1.73.35, Zig 0.16.0, UPX, mtools (mformat/mcopy), and zip.
libpng16 dev headers are needed for zig build tools; qemu-system-i386
for the emulator and smoke test steps.
zig build— full floppy chain: boot sector, UPX-packedgame12_floppy.com(guarded at the 16384-byte bootloader load limit), and a FAT12build/img/floppy.imgwithGAME.COMandMANUAL.TXTzig build qemu— boot the floppy image in QEMU (orbochs)zig build burn/burn-fast— write to a physical floppy;FLOPPY_DEV(e.g.FLOPPY_DEV=/dev/sdb zig build burn) is required, there is no default devicezig build jsdos— regeneratejsdos/game12.jsdosdeterministically (served byjsdos/index.html)zig build help— full step list (com,stats,opcodes,tools,bundle,package, ...)
Release gates
scripts/baseline.sh check— rebuild and compare sha256 ofboot.bin,game12_raw_dos.com,game12_floppy.comagainstscripts/baseline.sha256;recordrewrites the baselinescripts/smoke.sh— headless QEMU boot-to-title test of the floppy image
Technical Highlights
- Pure x86 assembly game for DOS PCs
- Less than 16KB in size
- Runs under DOS or from a bootable floppy on compatible x86 PCs
- Bootable FAT12 floppy image support
- VGA 320x200 graphics
- 16-color DawnBringer-style palette in 256-color mode
- 16x16 tile and sprite renderer
- Procedural map generation from campaign seed values
- Double-buffered framebuffer drawing
- RLE-compressed title/background images
- PC Speaker sound effects
- Rail auto-orientation and switch logic
- Pod entity movement with collision handling
- DOS mouse support through
int 33h - Bare-metal floppy boot path with tiny PS/2 mouse driver
- Custom asset pipeline using small tools for tiles, fonts, and RLE images
- Graphics created with P1Xel Tool: https://github.com/w84death/p1xel-tool





