How szymor/yatka works
Main System Components
a. Core Game Engine
• Main game loop (main.c)
• To state management components
b. State Management System
• Main Menu (state_mainmenu.c)
• Game Over (state_gameover.c)
• Settings (state_settings.c)
c. Input/Output Systems
• Input: Joystick handling system (joystick.h)
• Output: Video rendering system (video.c)
• Audio System (sound.c)
d. Game Logic Components
• Randomizer system (randomizer.c) - Show all supported algorithms
• Data Persistence (data_persistence.c)
• Skin Management (skin.c)
e. Resource Management
• Create sections for:
• Skins system (multiple themes)
• Music assets
• Sound effects
• Game configurations
Component Relationships
• Main game loop → State Management
• State Management → Input/Output Systems
• Game Logic → Resource Management
• Resource Management → Output Systems
Technical Details
• Supported platforms (Bittboy, JZ4760-based consoles)
• Key dependencies (SDL libraries)
• File formats supported for music/resources
• Configuration options
Architecture Patterns
Following patterns:
• State pattern for game state management
• Factory pattern for randomizer implementation
• Observer pattern for input handling
• Strategy pattern for skin system
Resource Flow
How resources are loaded and managed:
• Skin loading pipeline
• Music/SFX loading system
• Configuration file processing
• Save data management