Skip to main content

run_default

Function run_default 

Source
pub fn run_default() -> Result<()>
Expand description

Boots a Khora game with the default runtime app: auto-detects pack vs loose assets, registers every default decoder, and loads the scene named in runtime.json. This is what the pre-built khora-runtime binary calls and what a user project’s src/main.rs should call when it doesn’t need to register custom components/agents/lanes.

Returns Err only on irrecoverable startup failures (no assets at all, missing exe path). Per-frame errors are logged and the loop continues.