9 breaking releases

0.10.0 Jul 20, 2024
0.9.0 Feb 11, 2024
0.8.0 Jul 31, 2023
0.6.0 Mar 31, 2023
0.2.0 Feb 25, 2022

#187 in Game dev

Download history 553/week @ 2024-07-18 473/week @ 2024-07-25 308/week @ 2024-08-01 379/week @ 2024-08-08 289/week @ 2024-08-15 200/week @ 2024-08-22 241/week @ 2024-08-29 246/week @ 2024-09-05 247/week @ 2024-09-12 273/week @ 2024-09-19 323/week @ 2024-09-26 222/week @ 2024-10-03 201/week @ 2024-10-10 264/week @ 2024-10-17 248/week @ 2024-10-24 210/week @ 2024-10-31

943 downloads per month
Used in bevy_2delight_anims

MIT/Apache

785KB
7K SLoC

bevy_ecs_ldtk

crates.io docs.rs crates.io MIT/Apache 2.0 Bevy tracking CI

bevy_ecs_ldtk is an ECS-friendly LDtk plugin for Bevy. It allows you to use LDtk projects as an asset, spawn levels, and insert bevy components/bundles on LDtk entities/tiles. This plugin is ECS-friendly, partly for its internal usage of ECS that provides extra functionality to users, and partly for its usage of bevy_ecs_tilemap for rendering tilemaps. This is all behind an ergonomic API, providing low-boilerplate solutions to common use cases. For less common use cases, strategies that leverage this plugin's ECS constructs are also available.

platformer-example

cargo run --example platformer --release

Features

  • Support for all layer types
  • Support for loading external levels
  • Hot reloading
  • Solutions for easily loading/unloading levels, changing levels, loading level neighbors...
  • Low-boilerplate solutions for spawning bundles for LDtk Entities and IntGrid tiles using derive macros (other options available)
  • serde types for LDtk based off LDtk's QuickType loader, but with several QoL improvements
  • Support for Wasm (and tile spacing) through "atlas" feature

Documentation

Documentation for this plugin is available in two main places.

In the book, the following chapters are good jumping-off points for beginners:

Cargo examples are also available in this repository:

$ cargo run --example example-name

Compatibility

bevy bevy_ecs_tilemap LDtk bevy_ecs_ldtk
0.14 0.14 1.5.3 0.10
0.12 0.12 1.5.3 0.9
0.11 0.11 1.3.3 0.8
0.10 0.10 1.1 0.7
0.10 0.10 1.1 0.6
0.9 0.9 1.1 0.5
0.8 0.7 1.1 0.4
0.7 0.6 1.1 0.3
0.6 0.5 0.9 0.2
0.6 0.5 0.9 0.1

Asset Credits

Dependencies

~40–76MB
~1.5M SLoC