How scorzy/idleant2 works
IdleAnt2 is a browser-based idle strategy game. Players manage bug populations and production, spend resources on units and research, unlock automation, and progress through world, prestige, and mastery systems; they can also save or restore a run. The Angular routes expose these game screens, while MainService owns the game loop and local save handling. The graph reflects the documented game identity, routes, and sampled model/service code; some model subsystems are represented by their exact enclosing directories because their implementations were not sampled.
Main entry points: main.service.ts Game Service · app.routes.ts Game Routes · game.ts Game State · app.component.ts Application Shell
Components 21
Game Experience
- Application Shell
src/app/app.component.ts - Game Routes
src/app/app.routes.ts - Unit Screens
src/app/unit-tabs - Home Screen
src/app/home - Research Screen
src/app/research/research.component.ts - Laboratory
src/app/laboratory - World Travel
src/app/world - Save Options
src/app/options-nav/save
Game Economy
- Game State
src/app/model/game.ts - Bug Units
src/app/model/units - Materials
src/app/model/units/materials.ts
Progression Systems
- Research
src/app/model/research.ts - Auto-buy
src/app/model/autoBuy/auto-buy-manager.ts - World State
src/app/model/world.ts - Prestige
src/app/model/prestige - Masteries
src/app/model/masteries
Run Management
- Game Service
src/app/main.service.ts - Player Options
src/app/options.service.ts
Other components
- Player
- Browser Storage
- PlayFab Cloud
Connections 25
- Player → Application Shell: plays
- Application Shell → Game Service: starts loop
- Application Shell → Game Routes: hosts screens
- Game Routes → Unit Screens: routes to
- Game Routes → Home Screen: routes to
- Game Routes → Research Screen: routes to
- Game Routes → Laboratory: routes to
- Game Routes → World Travel: routes to
- Game Routes → Save Options: routes to
- Unit Screens → Game Service: reads game
- Research Screen → Game Service: reads game
- Game Service → Game State: updates
- Game Service → Browser Storage: loads and saves
- Game Service → Player Options: uses settings
- Game State → Bug Units: assembles
- Game State → Materials: tracks resources
- Game State → Research: manages
- Research → Auto-buy: refreshes list
- Laboratory → Game Service: reads game
- World Travel → Game Service: reads game
- Game State → World State: tracks current
- Game State → Prestige: manages
- Game State → Masteries: manages
- Save Options → Game Service: saves or loads
- Game Service → PlayFab Cloud: cloud save