How twohoursonelife/onelife works
Main Components Overview
The system should be divided into these primary components:
a) Client-Side Components:
• Game Client (in gameSource/)
• Data Editor Client (in gameSource/)
• User Interface Layer
• Graphics Engine
• Sound System
• Network Communication Layer
b) Server-Side Components:
• Game Server (in server/)
• Database Systems (Multiple DB types: KISSDB, LinearDB, StackDB)
• Player Management System
• Management System
• Life Token System
• Curse System
• Lineage System
c) Additional Services:
• Discord Integration (Authentication/Community)
• Stats Server
• Fitness Server
• Photo Server
• Curse Server
• Arc Server
Component Relationships
a) Primary Data Flow:
Client <-> Network Layer <-> Game Server <-> Database Layer
b) External Services Integration:
Game Server <-> Additional Services (Discord, Stats, etc.)
Architectural Patterns to Highlight
• Component-based architecture (evident in gameSource/ structure)
• Service-oriented architecture (for external services)
• Database abstraction layer (multiple DB implementations)
• Event-driven system (for game mechanics)
Key Technical Elements
a) Client Architecture:
• Graphics pipeline (SpriteBank, AnimationBank)
• Sound system (SoundBank, MusicPlayer)
• Input handling system
b) Server Architecture:
• Management system
• Player state management
• Database interactions
• External service communications
Specific Implementation Details
• External services (clouds)
• Client components (rounded rectangles)
• Server components (hexagons)
Important Subsystems
Specialized systems:
• Life token management
• Curse system
• Lineage tracking
• Player spawning mechanism
• Generation and management
• Community features
Cross-Cutting Concerns
Shared components:
• Configuration management
• Logging system
• Security features
• Build system
• Resource management
The build and deployment pipeline
This architecture reflects both the game's multiplayer nature and its focus on community-building features, which are central to 2HOL's design philosophy.