How hasangergames/suroi works
a. Client ↔ Server Communication
• WebSocket connections
• Game state updates
• Player input
• Packet streaming
b. Internal Systems
• Game object updates
• Physics calculations
• Player interactions
• Asset loading
a. Game Logic
• Player management
• Inventory system
• Combat system
• Generation
• Gas system
b. Asset Pipeline
• Images
• Audio
• Translations
• Data
• Node.js runtime
• PixiJS rendering
• SASS/CSS styling
• Vite build system
Specific Implementation Details
• Client-side game loop
• Server-side game loop
• Shared resources
• Network layer
b. Important features:
• Multi-language support
• Plugin system
• Console commands
• Performance monitoring
Error handling and fallback systems
• The real-time nature of the game
• Client-server architecture
• Asset management system
• Plugin extensibility
• Multi-language support
• Build and deployment pipeline