How vickscarlet/liferestart works
Remake is a life-simulation game with a web interface and a console entry point. The main player workflow moves through mode and character selection, talent selection, attribute allocation, yearly play, summary, and achievement/progression screens. Web hooks coordinate those stages and call the game core to start, advance, summarize, and end a run; profile and unique state are loaded from and saved to browser storage. The graph also shows the sampled talent logic and its content, condition, and random-selection dependencies. Several UI and core modules are represented by their tree paths; their internal wiring was not sampled.
Main entry points: play.ts Play hooks · game.ts Game core · talent.ts Talent logic · storage.ts Storage lifecycle
Components 23
Player interfaces
- Web entry
apps/web/src/index.tsx - Game shell
apps/web/src/Game.tsx - Game stages
apps/web/src/containers - Console game
apps/console/app.ts - Console entry
apps/console/index.ts
Web coordination
- Play hooks
packages/hooks/src/play.ts - Profile hooks
packages/hooks/src/profile.ts - Allocation hooks
packages/hooks/src/alloc.ts - Talent hooks
packages/hooks/src/talent.ts - Achievement hooks
packages/hooks/src/achievement.ts - Storage lifecycle
apps/web/src/hooks/storage.ts - Storage API
apps/web/src/storage/index.ts - Local storage
apps/web/src/storage/local.ts
Game engine
- Game core
packages/core/src/game.ts - Game state
packages/core/src/state.ts - Talent logic
packages/core/src/talent.ts - Achievement logic
packages/core/src/achievement.ts - Event logic
packages/core/src/event.ts
Game content
- Game content
packages/data/src - Condition parser
packages/condition/index.ts - Random utilities
packages/vitex/index.ts
Other components
- Player
- Console user
Connections 20
- Player → Web entry: opens
- Web entry → Game shell: renders
- Game shell → Game stages: presents
- Game stages → Play hooks: uses
- Play hooks → Game core: starts, advances, summarizes, ends
- Play hooks → Profile hooks: reads profile
- Play hooks → Allocation hooks: reads allocation
- Play hooks → Talent hooks: resets talent state
- Play hooks → Game state: updates game state
- Storage lifecycle → Profile hooks: loads profile into
- Storage lifecycle → Storage API: initializes, reads, writes
- Storage API → Local storage
- Game core → Talent logic
- Game core → Achievement logic
- Game core → Event logic
- Talent logic → Game content: reads talents
- Talent logic → Condition parser: checks conditions
- Talent logic → Random utilities: selects randomly
- Console user → Console entry: runs
- Console entry → Console game: creates, initializes