bevymodkrita Crates.io version Crates.io license

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.

Installation

cli cargo add bevy_mod_krita

Usage

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) { commands.spawn(Camera2dBundle::default()); commands.spawn(SpriteBundle { // Load a .kra file texture: assetserver.load("krita/demo.kra"), ..default() }); } ```

License

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.