All projects

In progress2026Personal

Deep Core

An idle mining game: dig a 500-level shaft, refine the ore, then collapse the mine and start again stronger. On desktop and phones.

Since
2026
Stack
  • Lua
  • LÖVE

Deep Core is an idle mining game. You strike the rock by hand, buy rigs to dig a shaft 500 levels deep, feed the ore to a refinery, and when the run slows down you collapse the mine and start over, stronger. Each collapse opens one more system: contracts, a dig wall, a crew, a freight yard and more. It runs on LÖVE, in Lua, on desktop and phones, in pixel art drawn entirely in code.

How it plays

  • The mine. The Mine tab is a cross-section of the mine, with a headframe and a shaft for each rig, ore buckets on the cables, carts in a haulage tunnel and the refinery smoking on the surface. Seven soil types fill the first 50 levels, then eight deep strata of 56 levels each go down to Singularium near the bottom. Every rig has Depth, Bit and Hopper upgrades, and slots for a bit, a lamp and a winch.
  • The rock. Striking it builds a combo, crits for ×8 and breaks boulders, and every tenth boulder is a boss with a 30-second clock. Lucky veins, rockgrubs and a powder magazine add to the clicking.
  • The refinery. One animated machine per building turns raw ore into goods worth more than their parts: coal into coke, iron and coke into steel, gold and steel into alloy. Each building levels up in Speed, Quality and Resource optimisation, and heartstones buy Masterwork levels that survive collapses. Past level 50, every new ore unlocks a deep building you have to invent. Its ore must be reached and its inputs already made.
  • Perks. Rigs form geodes as they drill, and geodes buy Field Perks. Core Shards buy Legacy Perks. Each tree is a web of 84 nodes in the style of a passive skill tree, and owning its four keystones opens a Second Circle of 104 nodes, then a Third of 128. Drag to pan, zoom, and hover a node to see what it gives.
  • Collapse. Collapsing wipes coins, ore, rigs, buildings and Field Perks, and pays Core Shards based on how far past $10B the run’s earnings went. A first run has only the mine, the refinery and the perk trees. Each collapse opens the next system, and everything is open after the thirteenth. A charter picked before collapsing makes the next run harder and pays a bonus for good.
  • Goals, dig, crew and freight. Three rotating contracts pay Fame, and 73 trophies raise sale prices. The Dig tab hides 16 specimens in a wall of rock tiles. Up to eight crew members level up in jobs they keep for life, pass career exams and lead expeditions. Every sale loads a crate for one of fifteen companies, delivered by the freight line or routed by hand on the hump.
  • Away time. The mine keeps running while the game is closed, for 2 hours, or 12 with the Night Crew perk, doubled by each perk of the Legacy Crews branch. Coming back opens a “while you were away” summary.

How it’s built

The game started as an HTML/React prototype. Deep Core is its port to Lua, pushed further. The shaft went from 50 to 500 levels, the perk lists became node webs, the interface became pixel art, and the systems above were added on top.

  • Checked against the prototype. A parity harness runs the original JavaScript and the Lua port through the same 782-step scenario, from a fresh start through four collapses with every perk bought and every building maxed, and compares 8,502 values per snapshot. The harness patches deliberate changes into the prototype first, and the new systems stay neutral in that mode, so everything else matches to 2e-16.
  • Pixel art from code. There are no image or font files. Every glyph is written as rows of # and ., sprites are built from text grids, and the game draws at a whole number of screen pixels per art pixel, so the pixels stay square.
  • One layout, every screen. It draws in logical units at 1440×960 and scales from there. Below a certain width the layout stacks, the camp becomes its own tab, and it follows phone rotation mid-run. A smoke test draws every tab at nine window sizes and fires about 41,000 synthetic clicks to check that every button does something.
  • Pacing checked by a bot. tools/pace.lua plays the game headless. With ten minutes of play every two hours, the first collapse comes after about a day and a half.
  • Offline progress replays the time away through the same simulation step the live game uses, with the same seeded dice, so an hour away gives exactly what an hour of play would.
  • No network, no native modules, so it can be packaged for Steam, Android and iOS.

Posts about this project