codecraft 0.2.0

A minimalist 3D game engine built on parts of Bevy (ECS, color) with wgpu and winit: OpenPBR materials, clustered lighting, a yakui-drawn UI, audio and gamepad haptics; its binary maps any folder, and the symbols of its Rust files, as a 3D wall of boxes
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! `codecraft [path]`: a 3D map of the folder at `path` (or the current directory).
use std::path::PathBuf;

use codecraft::code::CodeScene;
use codecraft::prelude::*;

fn main() {
    let root = std::env::args()
        .skip(1)
        .find(|arg| !arg.starts_with("--"))
        .map(PathBuf::from)
        .unwrap_or_else(|| std::env::current_dir().expect("no working directory"));
    App::new("codecraft")
        .scene(move |app| CodeScene::open(app, root))
        .run();
}