8000 Add a section about bevy_asset_loader · NiklasEi/rust-gamedev.github.io@17c1f44 · GitHub
[go: up one dir, main page]

Skip to content

Commit 17c1f44

Browse files
committed
Add a section about bevy_asset_loader
1 parent 4ec1289 commit 17c1f44

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11< 8000 /td>
public/
2+
.idea/
121 KB
Loading

content/news/022/index.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -146,6 +146,28 @@ done by [naga], roughly 4x as fast as the C++ alternative
146146
[gfx-portability]: https://github.com/gfx-rs/portability
147147
[gfx-naga-blog]: https://gfx-rs.github.io/2021/05/09/dota2-msl-compilation.html
148148

149+
### [bevy_asset_loader]
150+
151+
![Configuring two asset collections](bevy_asset_loader.png)
152+
153+
`bevy_asset_loader` by [@nikl_me] is a plugin for [Bevy][bevy] apps aiming to
154+
improve a common pattern for asset-loading. The boilerplate required to load
155+
assets during a "loading state" is reduced to a minimum. 9D58 At the same time, the
156+
plugin brings together the internal names of assets and their filepath, making
157+
it easier to add new assets and to keep an overview over already existing ones.
158+
159+
The library introduces the `AssetCollection` trait that can be derived. Any
160+
number of asset collections can be loaded by a single `AssetLoader` during a
161+
configured app state. When all assets are loaded, the collections will be
162+
inserted into Bevy's ECS as resources. Afterwards, the `AssetLoader` will
163+
switch into a second configurable app state. At this point, your app can use
164+
the asset collections that now contain loaded asset handles.
165+
166+
167+
[bevy_asset_loader]: https://github.com/NiklasEi/bevy_asset_loader
168+
[bevy]: https://github.com/bevyengine/bevy
169+
[@nikl_me]: https://twitter.com/nikl_me
170+
149171
## Popular Workgroup Issues in Github
150172

151173
<!-- Up to 10 links to interesting issues -->

0 commit comments

Comments
 (0)
0