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.
- 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.
- 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.
- 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.
- 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.
- 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
- Idle Income GeneratorPassive income system for idle/clicker games with offline earnings calculation, upgrade scaling, and prestige mechanics. Handles large numbers with K/M/B/T formatting.
- Score ManagerComplete score management system with high score persistence, combo multipliers with decay, and score change events. Uses singleton pattern for easy global access.
- Mobile Responsive UI ScalerAdjusts UI scale to the device's aspect ratio, DPI and orientation alongside CanvasScaler, so fonts stay readable and layouts hold on every phone.
- Tap Input HandlerHandles single tap, double tap, and long press gestures with configurable timing. Provides tap position in both screen and world space coordinates.
- Mobile Safe Area HandlerFits a UI RectTransform to the device safe area on notched phones and tablets, and updates on orientation changes, on iOS and Android.