A general purpose grided entity library meant to support tilemap libraries, or other libraries that require accessing entities in a grid based manner built on top of the aery relations crate. The goal is to keep the API surface as simple and intuitive as possible, and to avoid deferred operations/states where possible to make the structures more intuitive work with (ex: an update in one system should be seen by the following system, not the following frame.).
Features
Currently, bevy_tiles supports the following:
- Automatic chunking (including access to chunk entities)
- Automatic map creation
- Hierarchical despawning of chunks and maps
- N-dimensional map support
- Map based quiries
- Spatial queries
- Batched operations for better performance on large groups of tiles or chunks
Upcoming features:
- Automatigically handle hierarchical deletes (via aery support or supported directly in this crate)
- Sort tiles in memory based on chunk and map (will require bevy API additions in the future)
API
The basic API revolves around TileQuery's, TileCommands, and TileMapLabel's as seen below.
;
More examples can be found in the examples folder!
Versions
| Bevy version | bevy_tiles verison |
|---|---|
| 0.12 | 0.1 |
| 0.11 | 0.1-dev |
