Load Krita's .kra
documents directly in Bevy for rapid prototyping or game jams.
Please keep in mind that .kra
files are not optimized for size, so you should probably not use them for production bundles.
cli
cargo add bevy_mod_krita
Simply add the KritaPlugin
to your app, enable hot reloading (optional) and load .kra
files!
```rs use bevy::prelude::*; use bevymodkrita::KritaPlugin;
fn main() {
App::new()
.addplugins(DefaultPlugins.set(AssetPlugin {
// Enable hot reloading (optional)
watchforchanges: true,
..default()
}))
// Add the Krita plugin to enable loading of .kra
files
.addplugin(KritaPlugin)
.addstartupsystem(setup)
.run();
}
fn setup(mut commands: Commands, assetserver: Res.kra
file
texture: asset
This project is licensed under the terms of the MIT or Apache 2.0 license at your choice.
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.