How chyiiiiiiiiiiii/better-world works
High-Level Architecture Components
a) Client Application Layer (Flutter)
• Frontend UI Components
• Game Engine Components
• State Management
• Local Storage
b) Backend Services
• Firebase Authentication
• Firebase Firestore
• Gemini AI Integration
• Google Wallet Integration
Detailed Component Breakdown
Frontend Architecture:
Client Application
• Core
• App Initialization
• Routing System
• Internationalization (L10n)
• Features
• Authentication
• Game Modules
• Recycling Game
• Trash Catching Game
• AI Interaction
• Leaderboard
• Collection System
• State Management
• Controllers
• Providers
• Repositories
• Shared
• Assets
• Constants
• Utils
Interaction Flows
• User Authentication Flow
• Game Session Flow
• Data Synchronization Flow
• AI Interaction Flow
• Wallet Integration Flow
Implementation Details
• Cross-platform support (iOS, Android, Web, macOS)
• Firebase integration points
• State management flow using controllers and providers
• Game feature implementations
• External service integrations
Technical Stack Representation
Technologies:
• Flutter/Dart
• Firebase (Auth & Firestore)
• Gemini AI
• Google Wallet API
• ZFlutter (3D UI)
Infrastructure Layer (Firebase/Platform-specific code)
This structure reflects the project's nature as a cross-platform educational game with complex integrations while maintaining clarity and educational focus.