Case Study
3-Pixel – Ambient desktop micro-civilization simulation
Designing an unobtrusive, living desktop companion where 3-pixel-tall autonomous beings ("Trixis") harvest, build, pray, and evolve through 7 historical eras—engineered with Rust, Tauri v2, TypeScript Canvas, and GT-3 release discipline.
Overview
Traditional idle and management games demand full window focus, disrupt productivity with intrusive notifications, and consume massive system memory. 3-Pixel is a minimalist desktop companion simulation built on a fundamentally different premise: it quietly inhabits the bottom edge of modern displays, transparently coexisting with active IDEs, spreadsheets, and browsers.
Players observe a self-sustaining micro-society of 3-pixel-tall procedural beings ("Trixis") that forage, chop wood, quarry stone, research discoveries, and defend their settlements. Across 7 distinct evolutionary eras—from the flickering campfires of the Primitive Era to interdimensional Cosmic Ascension—the simulation balances autonomous agent agency with subtle divine intervention mechanics.
Problem & Goal
- Desktop Non-Intrusiveness: A background companion must never block daily desktop workflow. We needed smart mouse passthrough and hit-testing: transparent clicks pass through to underlying applications, while interactive HUD elements capture cursor events with zero latency.
- Macro-Demographic Balance: Primitive campfires should feel intimate (3–10 units), while late-stage empires should support thousands. We designed an exponential 3.4x population scaling law paired with organic food surplus thresholds to prevent boom-and-bust famine cycles.
- Eliminating Gatekeeper & Distribution Friction (GT-3 Discipline): Unsigned desktop games trigger alarming "Damaged / Move to Trash" warnings on modern macOS (Ventura, Sonoma, Sequoia) and proxy/antivirus hangs on Windows. We set out to build a fully automated, 1-command release pipeline with Universal 2 binaries, official Apple Developer ID Notarization (`notarytool` + `stapler`), and static Windows GUI packaging.
My Role
Architected simulation logic, sprite art and UI ergonomics, procedural Web Audio synthesizer, Tauri v2 Rust native host hooks, cross-platform packaging scripts, and itch.io commercial positioning.
Constraints
Under 35 MB idle RAM usage, zero Electron bloat, 60 FPS deterministic canvas loop, 100% offline gameplay, and flawless native compatibility across both Apple Silicon and Intel Macs.
Process & System Architecture
- Smart Hit-Testing & Global Boss Key: Implemented a high-frequency native hit-testing thread in Rust that queries the cursor position against registered interactive UI rectangles. Outside the HUD cards, mouse events pass straight through to the user's desktop windows. A global shortcut (Cmd/Ctrl+Shift+H) instantly hides the canvas and HUD.
- First-Principles 16:9 Zero-Scroll HUD: Replaced bloated nested accordions with an ergonomic 4-tab control center (Colony, Threats & Events, Trixi Roster, Settings). The viewport strictly fits within 1280x800 with zero scrollbars, featuring dynamic gemstone progress steppers with smooth color-interpolated rainbow lines.
- Relocated Notification Center Popup: Rather than allowing emergency alert banners to stretch across the bottom and break screen layout, all dynamic events (traveling merchants, forest fires, famines, and colony prayers) were consolidated into an elegant top-right Notification Center popup triggered by an alert badge (🔔).
- Prayer Intervention & Moral Agency: When catastrophic disasters strike, Trixis pray for divine aid. Players face a meaningful dilemma: grant immediate salvation via Miracles (spending Live Energy) to earn Faith, or allow the colony to endure through Steel Will to forge resilient survivors.
- Hardened Cross-Platform Packaging Pipeline: Engineered an automated packaging pipeline (`scripts/package.sh`) that cross-compiles native Universal 2 macOS binaries (`universal-apple-darwin`), seals code signatures with `Developer ID Application`, submits to Apple's cloud Notarization service (`xcrun notarytool`), staples the validation ticket, and produces a portable, statically linked Windows `.zip` configured with `--no-proxy-server` to avoid corporate proxy interception.
Key Outcomes
- Seamless Zero-Warning macOS Launch: Official Apple Notarization guarantees that when players download `3-pixel-macos.dmg`, the app mounts and opens instantly with Apple's verified developer badge—with zero Terminal commands or Gatekeeper bypasses.
- Sub-35MB Footprint: Combining Rust and the operating system's native webview engine delivers a hyper-responsive 60 FPS pixel simulation with a fraction of the memory footprint of conventional Electron titles.
- Multi-Channel Distribution: Packaged simultaneously as a signed macOS DMG, a portable Windows ZIP, and an instant zero-install HTML5 browser build for frictionless play on itch.io.
Live Product & Downloads
Next Steps
Adding Steam Deck integration, expanded cosmic ascension tech trees, and customizable pixel biomes. Looking for senior product design, simulation engineering, or native desktop craft for your next product? Let's talk.