nano9 0.1.0-alpha.3

A Pico-8 compatibility layer for Bevy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use bevy::prelude::*;
use nano9::prelude::*;

fn main() -> Result<(), ConfigError> {
    let content = include_str!("../assets/Nano9.toml");
    let mut config = Config::from_str(content)?;
    config.inject_template(None)?;
    App::new()
        .add_plugins(Nano9Plugins::new(config))
        .add_systems(PreUpdate, run_pico8_when_loaded)
        .run();
    Ok(())
}