Games

Idle / clicker game with offline progress

Upgrades, exponential costs, autosave, and offline earnings: the core systems of an idle game.

Paste into Cursor, Claude Code, Codex, Lovable, Bolt, Replit or v0
Build an idle/clicker game themed around [THEME, e.g. 'launching rockets'].

- Click to earn; 6 upgrades with exponentially increasing cost (cost = base * 1.15^owned).
- Passive income per second; numbers formatted (1.2K, 3.4M...).
- Autosave to localStorage every 10s and on tab close; offline progress capped at 8 hours when you return.
- Achievements (5) and a reset/prestige button with confirmation.
- Game state in one plain object; game logic separate from rendering so it's testable.
Balance it so the first upgrade is affordable in ~10 seconds.

Tips

  • Ask the AI for a small balancing spreadsheet (CSV) to tune costs.

Works with: Cursor, Claude Code, Codex, Replit, Lovable, Bolt, v0. Last reviewed 2026-11-13.

← All prompts · Something broke? Fix library