How larpon/shy works
• CLI and Command Tools – Represented by the directories “cli” and “cmd” (which includes subcommands like “cleancode”, “complete”, “export”, etc.). This component handles parsing user commands, live coding, exporting projects, and invoking the game engine.
• Asset and Resource Management – Shown in folders like “assets” and upcoming work-in-progress features noted in the README (the assets system for loading images, sound, fonts, etc.).
• UI and Interaction Components – Represented by the “ui” folder (with buttons, events, themes, etc.) as well as components like “easy” and “ease” that might provide simplified APIs or helper functions for rapid development.
• Examples and Tests – Although these are not part of the runtime architecture, they illustrate the usage patterns and integration of the core modules. They can be noted as demonstration and verification components (“examples”, “tests”).
• Wrappers and External Libraries – The “wraps” directory (for fontstash, miniaudio, sokol, stbi, wren, etc.) highlights integrations with external libraries. This area ties the project’s V code to critical C libraries that handle low-level operations.
Relationships and Dependencies
• The CLI tools and commands (from “cli” and “cmd”) are the entry point for users to build, run, and export projects using the core engine.
• How the “wraps” directory serves as a bridge to external dependencies (SDL2, vab, sokol, stbi, etc.), and note that external platform-specific configuration elements (e.g., “paths”, “patches”, “platforms/wasm”) enable cross-platform support.
• That the “extras” directory (like ingrid) contributes additional tools or examples that extend the base functionality.
Architectural Patterns and Design Principles
• Cross-platform abstraction: Represent how different platform-specific code (in “platforms”, “export”, “paths”) is abstracted from the engine logic.
• CLI vs. Library usage: Emphasize the dual nature of the project, where one path is using the V module in one’s own game, and the other is using the CLI tool to work with builds and exports.