tiled_parse_tree 0.1.0

An implementation of a Tree data structure.
Documentation
  • Coverage
  • 40%
    6 out of 15 items documented0 out of 12 items with examples
  • Size
  • Source code size: 9.39 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 3.65 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • CMorrison82z/tiled_import
    1 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • CMorrison82z

Tiled utilities and an AssetLoader for the Bevy game engine.


Features

  • Parse Group, Tile, and Object layers, Tile and object properties.
  • Loads the scene into Bevy.
  • Generate Tiled Colliders as bevy_rapier2d or avian2d Colliders.

Documentation

Bevy Usage Example

Add bevy_tiled_loader to Cargo.toml:

# For 2D applications:
[dependencies]
bevy_tiled_loader = {version = "*", features = "avian2d_colliders"} # You should explicitly set the version.

Add the plugin and load a *.tmx:

app.add_plugins(
  TiledScenePlugin
)

// ...

fn spawn_tiled_scene(mut commands: Commands, asset_server: Res<AssetServer>) {
  let tiled_map_handle: Handle<TiledMapAsset> = asset_server.load("my_first_tiled_map.tmx");

  commands.spawn(
    BufferedMapScene(tiled_map_handle)
  );
}

Supported Bevy Versions

Bevy My Tiled Loader
0.15 0.1

Future Features

  • Settings to control how the *.tmx is parsed and how / what gets generated.

Contributing

If you encounter any problems, feel free to open issues or create pull requests.

Acknowledgements

Bevy is awesome.