How artcfox/circuit works
Main System Components
a) Core Game Engine
• Circuit simulation logic (circuit.c)
• Game state management
• Rule checker system
b) Resource Management System
• Audio assets (PCM files in /data)
• Visual assets (sprites, tilesets)
• Level data
c) Development Tools
• Oracle2 subsystem (for circuit validation)
• Ramfont system (for font rendering)
┌─────────────────────────────────────────────┐
• Game Runtime │
• ┬───────────────────────┤
• Core Engine │ Resource Manager │
• ┌─────────────┐ │ ┌─────────────┐ │
• Circuit Logic│ │ │Asset Loader │ │
• ┘ │ └─────────────┘ │
• ┌─────────────┐ │ ┌─────────────┐ │
• State Manager│ │ │Sound System │ │
• ┘ │ └─────────────┘ │
• ┴───────────────────────┤
• Hardware Abstraction Layer │
• ┤
• Uzebox Hardware │
• (AVR 8-bit microcontroller) │
• ┘
Component Details
• Rectangles: Main components
• Rounded rectangles: Subsystems
• Hexagons: Hardware elements
Development Tools Integration
How the development tools interact:
┌─────────────┐ ┌─────────────┐
• Oracle2 │ │ Ramfont │
• Validator │ │ Generator │
• ┘ └─────────────┘
• ↓ ↓
┌─────────────────────────────────────────┐
• Build System │
• ┘
Asset Pipeline
┌─────────────┐ ┌─────────────┐ ┌─────────────┐
• Raw Assets │ → │ Converters │ → │ Game Assets │
• (.xml,.wav)│ │(.inc files) │ │(Compressed) │
• ┘ └─────────────┘ └─────────────┘
Key Elements to Highlight
• Circuit simulation core (main gameplay mechanic)
• Level progression system (60 levels across 4 difficulty tiers)
• Input handling system (keyboard/controller support)
• Sound system (PCM audio playback)
• Sprite and tileset management
• Rule checking system
Documentation Integration
References to:
• Web emulator support (docs/cuzebox.js)
• Hardware specifications
• Development tools documentation
• Blue: Core game systems
• Green: Resource management
• Yellow: User interface elements
• Red: Critical hardware interfaces
• Purple: Development tools
Remember to maintain appropriate abstraction while showing the unique aspects of this retro console game, particularly the hardware constraints and optimization requirements.