nano9 0.1.0-alpha.2

A Pico-8 compatibility layer for Bevy
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use super::*;

#[derive(Resource, Debug, Reflect, Deref)]
pub struct Pico8Handle {
    #[deref]
    pub handle: Handle<Pico8Asset>,
    pub script_component: Option<Entity>,
}

impl From<Handle<Pico8Asset>> for Pico8Handle {
    fn from(handle: Handle<Pico8Asset>) -> Self {
        Self {
            handle,
            script_component: None,
        }
    }
}