Skip to content
AI-powered appsNewChat, vision, voice, generationBookings & schedulingAppointments that book themselvesShops & sellingA storefront in every pocketClient & businessRun the operation from one placeCommunities & clubsA home that is not a group chat
Health & wellnessHabits, tracking and calmGames2D, 3D and multiplayerPersonal & toolsThe tool you wish existedInternal toolsThe tool ops never had time for
See all use cases
ArcadeNewPricingSecurity
EngineThe game engine and World EditorHow it worksFrom one sentence to a live productDocsGuides for building and publishingBlogStories, guides and newsChangelogWhat shipped latelyStatusUptime of every serviceSupportGet help from the team
AI-powered appsBookings & schedulingShops & sellingClient & businessCommunities & clubsHealth & wellnessGamesPersonal & toolsInternal tools
See all use cases
ArcadeNewPricingSecurity
EngineHow it worksDocsBlogChangelogStatusSupport
Language
Blog
Prompt libraryNovember 22, 20266 min read

A Prompt for an Idle Space Mining Game

An idle game is a set of formulas with a pretty face. This brief gives the agent the formulas, the face and the rules for time away, so the first build already feels like a real idle game.

Startbase Team
Editorial ink illustration of a tin rocket tethered to an asteroid with a brass pickaxe, one ore crystal in ember orange

Key takeaways

  • Put the cost formula in the brief (base cost times 1.15 to the power of owned). It decides the pacing of the whole game.
  • Offline earnings need a cap and a welcome-back screen. Without both, players either break the economy or never notice it.
  • Ask for big-number formatting from the start. Idle numbers pass a million within an hour and plain digits stop fitting.

Below is a full prompt for an idle space mining game you can paste into Startbase: tap an asteroid for ore, buy drones that mine on their own, unlock farther asteroid belts, keep earning while the tab is closed (up to a cap), and reset for a permanent bonus when progress slows. The brief spells out the cost formula, the drone tiers, offline rules and number formatting, because those are what make an idle game work and they are exactly what a short prompt leaves out.

The prompt

Make a 2D idle space mining game for phones (portrait) and desktop. The screen shows a slowly turning asteroid in front of a starfield, with the player's mining drones orbiting it. Tapping or clicking the asteroid mines 1 ore and spawns a small chip that flies to the ore counter. Ore is the currency. Drones mine automatically. Five drone tiers, each with a base cost and ore per second: Scout 15 ore, 0.1 per second; Digger 100, 1; Harvester 1,100, 8; Rig 12,000, 47; Mothership 130,000, 260. The price of each next drone of a tier is base cost times 1.15 to the power of how many the player owns of that tier. Each tier has an upgrade at 10, 25 and 50 owned that doubles its output. Tap power upgrades: every upgrade doubles ore per tap, costs 50, 500, 5,000 and so on (times 10 each). Asteroid belts: the player starts in the Inner Belt; reaching 1 million total ore unlocks the Ice Belt (all output x3, new blue asteroid art); 1 billion unlocks the Deep Belt (x10 on top, purple art). Prestige: after 1 billion total ore, a Warp button resets ore, drones and upgrades and gives Dark Matter equal to the floor of the square root of (total ore this run divided by 1 million). Each Dark Matter adds 10 percent to all output permanently. Show how much Dark Matter a warp would give right now before the player confirms. Offline: save the time when the game is closed or hidden; on return, credit ore for the time away at full rate, capped at 8 hours, and show a welcome-back card with the amount and a Collect button. Save to the browser every 10 seconds and on hide. Number formatting: below 1,000 show whole numbers, then 1.23K, 45.6M, 789B, 1.00T, then aa, ab and so on; always 3 significant digits. Buy buttons show the cost and turn bright when affordable; a buy x1 / x10 / max toggle. Feel: drones leave faint trails, the asteroid wobbles on tap, the ore counter ticks up smoothly rather than jumping. Sound: a soft ambient space drone, a crisp tick on tap, a warm chord on each purchase, and keep all sounds quiet enough for long sessions. Screens: main view with the asteroid on top and a scrolling list of drones and upgrades below, belt map, warp screen, settings with sound and number format options.

Why it is written this way

  • The 1.15 growth rate. It is the classic idle-game multiplier: each next drone costs 15 percent more, so buying many of one tier gets steadily worse and the next tier always looks attractive. The idle clicker guide explains exponential costs and why output grows linearly while costs grow exponentially.
  • Tiers roughly 10 times apart in cost. Each new tier arrives when the previous one starts feeling slow, which is the moment idle games are built around.
  • Milestone doublings at 10, 25 and 50. They give a reason to keep buying a tier past the point it stops being efficient, and they create small goals between the big ones.
  • Belts as multipliers with new art. A new belt is a visible change of scenery, which feels like progress far more than a bigger number does.
  • A prestige formula with a square root. It rewards longer runs but with diminishing returns, so players warp when progress slows instead of waiting forever. Showing the result before confirming makes the reset feel like a choice, not a loss.
  • Offline earnings with a cap. Eight hours covers a night's sleep. The cap keeps the economy under control, and the welcome-back card is the moment most idle players see their progress at a glance. For how saving works in browser games, see saving game progress.
  • Number formatting rules. Without them you get 1234567890 overflowing the counter or, worse, numbers losing precision. Three significant digits keep every value readable.

Three follow-up prompts

  1. 01Put the economy on dials. Add Engine panel dials for the cost growth rate, each tier's base cost and output, the offline cap and the prestige divisor, so I can tune pacing while playing.
  2. 02Add a reason to tap. Every 2 to 4 minutes, a small comet crosses the screen for 8 seconds. Tapping it grants 60 seconds of production instantly. It should be easy to see but never block the buy buttons.
  3. 03Add Dark Matter upgrades. In the warp screen, let players spend Dark Matter on three permanent upgrades instead of only the passive bonus: start each run with 10 Scouts, offline cap +4 hours, comets twice as often. Each has 5 levels.

Test offline progress for real after each change: close the tab, wait ten minutes, come back. Then fake a long absence by asking the agent for a hidden debug button that adds an hour of time away. Remove it before you publish.

Two variations

Active space miner

Replace the static asteroid with a small ship the player steers through a field of rocks, drilling them by flying close. Keep drones as passive income between flights. It becomes a hybrid of an arcade game and an idle game, good for players who find pure idle too quiet.

Colony idle

Swap mining for a growing moon base: ore, power and oxygen as three resources, where each building produces one and consumes another. This adds a balancing puzzle on top of the idle loop. Ask for it only after the single-resource version paces well, because three resources multiply the tuning.

Common failures and the fix to ask for

  • Numbers break after the trillions. Plain JavaScript numbers lose precision past about 9 quadrillion. Ask: "Store ore as a big-number type with a mantissa and exponent, and format it with the rules in the brief."
  • Offline earnings can be cheated by changing the device clock. For a single-player browser game this is usually acceptable. If it matters, ask the agent to ignore time-away values that are negative or larger than the cap.
  • The first ten minutes are slow. Players leave before the second tier. Say what you want: "A new player should afford the first Digger within 60 seconds and the first Harvester within 8 minutes."
  • The buy list jumps while scrolling. When rows change height as costs update, the list shifts under the thumb. Ask for fixed row heights and costs updated in place.
  • The game drains battery when idle in a tab. Ask the agent to lower the frame rate when nothing is being tapped and to pause rendering when the tab is hidden, while still crediting time from the clock.

If you want it to make money

Idle games are the genre most tied to ads and purchases, but get the free version fun first. How to make money from a web game covers the options and how much a small game can realistically earn. Then publish it in one click and watch whether people come back the next day, which is the number that matters in this genre.

Frequently asked questions

What cost formula should an idle game use?

A common choice is base cost times a growth rate to the power of how many the player owns, with a growth rate around 1.07 to 1.15. This prompt uses 1.15, which makes each purchase noticeably pricier and pushes players toward the next tier.

Does the game keep earning when the tab is closed?

Yes, by calculation rather than by running. The game saves the time it was closed, and on return it credits ore for the time away, up to the 8 hour cap in the brief.

When should prestige unlock?

When progress clearly slows, which in this brief is around 1 billion total ore. Show the reward before the player confirms so the reset feels like a step forward.

On this page

  • The prompt
  • Why it is written this way
  • Three follow-up prompts
  • Two variations
  • Common failures and the fix to ask for
  • If you want it to make money

Keep reading

More in Prompt library
Editorial ink illustration of an open seed packet beside a wooden hoe and a watering can, one sprouted seed in ember orange
Prompt libraryNovember 22, 2026

A Prompt for a Cozy Farming Game

Paste this brief to get a calm, playable farm on the first build: four crops with real numbers, an eight-minute day, two seasons and controls that work under a thumb.

7 min read
Editorial ink illustration of an iron dungeon key, a die and a skull candle holder, the candle flame in ember orange
Prompt libraryNovember 22, 2026

A Prompt for a Roguelite Dungeon Crawler

One brief for a top-down roguelite that is fun on the first build: a dodge with real frame values, enemies that telegraph, relics that change runs and a hub that keeps progress after death.

6 min read

Read less. Ship more.

Everything in this post is one prompt away. Describe your app and watch it build.

Start building

Apps, games, backends and publishing from one conversation.

Product

  • Features
  • Use cases
  • Pricing
  • Changelog

Resources

  • Blog
  • Docs
  • Support
  • Status
  • Security

Contact

  • w@startbase.ai
  • X / Twitter
  • LinkedIn
  • Instagram

Legal

  • Terms
  • Privacy

© 2026 Startbase. All rights reserved.