nightshade-api 0.42.0

Procedural high level API for the nightshade game engine
Documentation
use nightshade_api::prelude::*;

fn main() {
    let path = std::env::args()
        .nth(1)
        .unwrap_or_else(|| "assets/gltf/fox.glb".to_string());
    let bytes = std::fs::read(&path).expect("pass a path to a glb file");

    let mut app = open();
    show_grid(&mut app.world, false);
    spawn_floor(&mut app.world, 6.0);

    let model = spawn_model(&mut app.world, &bytes, vec3(0.0, 0.0, 0.0));
    set_scale(&mut app.world, model, vec3(0.02, 0.02, 0.02));
    play_animation(&mut app.world, model, 0);
    set_animation_looping(&mut app.world, model, true);

    orbit_camera(&mut app.world, vec3(0.0, 1.0, 0.0), 5.0);
    while frame(&mut app) {}
}