diff --git a/.gitignore b/.gitignore index 364fdec1a..489e8c016 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ public/ +.idea/ diff --git a/content/news/022/bevy_asset_loader.png b/content/news/022/bevy_asset_loader.png new file mode 100644 index 000000000..79bf7fb82 Binary files /dev/null and b/content/news/022/bevy_asset_loader.png differ diff --git a/content/news/022/index.md b/content/news/022/index.md index 716f0c44d..c8e8d00dd 100644 --- a/content/news/022/index.md +++ b/content/news/022/index.md @@ -304,6 +304,31 @@ The [current release] focuses on furniture. [Orchaldir]: https://github.com/Orchaldir [current release]: https://github.com/Orchaldir/texture_generator/projects/8 +### [bevy_asset_loader] + +![Configuring two asset collections](bevy_asset_loader.png) + +`bevy_asset_loader` by [@nikl_me] is a plugin for [Bevy][bevy] apps aiming to +improve a common pattern for asset-loading. The boilerplate required to load +assets during a "loading state" is reduced to a minimum. At the same time, the +plugin brings together the internal names of assets and their filepath, making +it easier to add new assets and to keep an overview over already existing ones. + +The library introduces the `AssetCollection` trait that can be derived. Any +number of asset collections can be loaded by a single `AssetLoader` during a +configured app state. When all assets are loaded, the collections will be +inserted into Bevy's ECS as resources. Afterwards, the `AssetLoader` will +switch into a second configurable app state. At this point, your app can use +the asset collections that now contain loaded asset handles. + +Currently, a single file always corresponds to one asset and more complex +assets like e.g. `TextureAtlas` are not yet supported. There are plans to +extend the `asset` attribute to allow loading more complex assets. Stay tuned! + +[bevy_asset_loader]: https://github.com/NiklasEi/bevy_asset_loader +[bevy]: https://github.com/bevyengine/bevy +[@nikl_me]: https://twitter.com/nikl_me + ## Popular Workgroup Issues in Github