pite 0.3.0

The Pite 2D scene-tree game engine CLI and visual editor.
1
2
3
4
5
6
7
8
9
10
// SPDX-License-Identifier: MIT OR Apache-2.0
use anyhow::Result;

pub fn run(scene: Option<&str>) -> Result<()> {
    let path = match scene {
        Some(s) if !s.is_empty() => pite_runtime::resolve_scene_arg(s)?,
        _ => pite_runtime::resolve_default_scene()?,
    };
    pite_editor::launch(&path)
}