Build an Idle Game

Passive income, upgrades, offline earnings, and prestige — the core loop for idle and incremental games.

5 steps 5 scripts 1 kit intermediate

The path

Add these in order. Each step builds on the one before it.

  1. Start: Passive income with offline earnings and upgrades IdleIncomeGenerator.cs · Passive income system for idle/clicker games with offline earnings calculation, upgrade scaling, and prestige mechanics. Handles large numbers with K/M/B/T formatting.
  2. Track currency, high scores, and formatted numbers ScoreManager.cs · Complete score management system with high score persistence, combo multipliers with decay, and score change events. Uses singleton pattern for easy global access.
  3. Add tap interaction for clicker mechanics TapInputHandler.cs · Handles single tap, double tap, and long press gestures with configurable timing. Provides tap position in both screen and world space coordinates.
  4. Scale UI responsively across screen sizes MobileResponsiveScaler.cs · Adjusts UI scale to the device's aspect ratio, DPI and orientation alongside CanvasScaler, so fonts stay readable and layouts hold on every phone.
  5. Polish: handle notched devices and safe areas MobileSafeArea.cs · Fits a UI RectTransform to the device safe area on notched phones and tablets, and updates on orientation changes, on iOS and Android.

Kits for this path

Every script in this path