How parmaja/tyro works
Tyro is a graphical environment for running Lua-based .tyro/.lua programs, with an interactive console, in-window editing tools, drawing, input, and sound. The documented workflow is to launch a script (or start an interactive session), run it in the graphical environment, and use engine controls and APIs to interact with it. The README establishes the user-facing capabilities, but no runtime implementation excerpts were supplied; uncertain internal calls are therefore omitted or shown as unverified dashed links.
Main entry points: TyroLua.pas Lua Runtime · TyroApp.pas Tyro Application · TyroEngines.pas Engine Loop · TyroScripts.pas Script Handling
Components 18
Application Runtime
- Tyro Application
src/TyroApp.pas - Engine Loop
src/TyroEngines.pas - Program Entry
src/tyro.dpr
Language and Scripts
- Lua Runtime
src/tyrolib/TyroLua.pas - Script Handling
src/tyrolib/TyroScripts.pas - Runtime Models
src/tyrolib/TyroModels.pas
User Interaction
- Script Editor
src/tyrolib/TyroEditors.pas - Console and Terminal
src/tyrolib/TyroTerminal.pas - Input Controls
src/tyrolib/TyroControls.pas - Input APIs
src/tyrolib/TyroInput.pas
Graphics and Audio
- Sprite Rendering
src/tyrolib/TyroSprites.pas - Tile Rendering
src/tyrolib/TyroTiles.pas - Particle Effects
src/tyrolib/TyroParticles.pas - Sound and Music
src/tyrolib/TyroSounds.pas
Engine Integration
- Raylib Binding
src/raylib/RayLib.pas - Fuse Integration
src/TyroFuse.pas
Other components
- Tyro User
- Script Workspace
Connections 18
- Tyro User → Program Entry: launches
README.md - Program Entry → Tyro Application: starts
- Tyro Application → Script Handling: loads scripts
- Tyro Application → Engine Loop: runs environment
- Script Handling → Lua Runtime: executes Lua
- Tyro User → Script Editor: edits scripts
README.md - Script Editor → Script Handling: saves and reruns
README.md - Tyro User → Console and Terminal: uses console
README.md - Tyro User → Input Controls: uses shortcuts
README.md - Lua Runtime → Input APIs: reads input APIs
README.md - Lua Runtime → Sprite Rendering: draws sprites
- Lua Runtime → Tile Rendering: draws tiles
- Lua Runtime → Particle Effects: creates effects
- Lua Runtime → Sound and Music: plays sound
README.md - Tyro User → Script Workspace: selects scripts
README.md - Tyro Application → Script Workspace: resolves assets
README.md - Engine Loop → Raylib Binding: uses graphics engine
- Engine Loop → Fuse Integration: integrates Fuse