Crater Crush: HTML5 Idle Mining Game with Source Code
A cheerful idle mining game on floating islands. Drag a mining ring over an isometric grid of pebbles and ores and watch the pickaxes smash everything inside it, with combos, critical hits and floating numbers. Short shifts, a deep upgrade tree and a prestige loop keep players coming back. Plain HTML, CSS and JavaScript, no framework, no dependencies, no build step.

Satisfying digging
The ring follows the mouse or a finger and the pickaxes strike on their own, in a steady rhythm. Pebbles crack, shatter into chips and drop stone, copper, gold, ruby and sapphire. Breaking many in a row fills the combo meter for a bonus; critical hits, double drops, gold showers and lightning bolts light up the field. Each shift starts at 30 seconds and ends with a results card of ores, coins, XP and goals.
Upgrades, forge and shop
Coins buy 19 upgrades in a honeycomb tree (damage, swing speed, ring size, plot size, critical chance, ore value, shift time, rare ores, double drop, combo and more). Ores forge 9 pickaxes, from Stone to Bedrock. The shop sells 6 boosters for the next shift, and 3 mining rigs keep digging while the player is away, with a welcome-back reward. Three goals are always open, each with its reward.

Lands, relics and Bedrock
Map pieces from player levels open 5 lands, each with its own ground and richer ores. 12 relics hide in the pebbles, each with a permanent bonus and a little memory of the story. Bedrock is the prestige: start a new run with bedrock shards that raise the value of every ore forever, keeping relics, lands and pickaxes.

A friendly host
Opal, a young miner, gives short guided tips the first time each screen opens and tells a small story in cards and a journal. Everything is non-blocking, and one line in config.js switches her off.
Every screen, every language
Dedicated layouts for desktop (up to ultrawide), tablets and phones in portrait and landscape. 14 languages: English, Portuguese, Spanish, French, German, Italian, Dutch, Polish, Turkish, Russian, Indonesian, Japanese, Korean and Chinese. Keyboard shortcuts, a Less motion option, vibration on phones, sound effects and music. Progress is saved in the browser.

Your template, your hosting
Upload the game folder to any static HTTP(S) host: no database, PHP, account or server code. Every number of the game lives in one commented file, config.js (ores, field, upgrades, lands, pickaxes, shop, rigs, relics, Bedrock). The complete editable source is included, readable and formatted, with 52 tests (rules, save, pace of the first shifts, 14 languages), a local preview server and npm run build. An offline buyer guide in 14 languages and a step-by-step customization guide come in the package.
Technical details at a glance
- Stack: HTML5, vanilla JavaScript (classic scripts), Canvas 2D and Web Audio, with no third-party game engine.
- Files: HTML, CSS, JavaScript, WebP and MP3. Font: Fredoka (SIL Open Font License).
- Languages: 14 interface languages; buyer guide in 14 languages.
- Saves: the browser's local storage, with no account. No in-app purchases, no tracking and no external requests.
- Editing the source: Node.js 26.13 or newer, npm ci, npm test and npm run build.




















