Rs Tiled Versions Save

Reads files from the Tiled editor into Rust

v0.11.2

7 months ago

Maintenance release. Updates dependencies and documentation.

Changelog

Changed

  • Updated Image docs. (#270)
  • Update libflate dependency to 2.0.0. (#279)
  • Fix some doc links. (#273)
  • Update ggez example to 0.9.3.

PRs Merged

Full Changelog: https://github.com/mapeditor/rs-tiled/compare/v0.11.1...v0.11.2

v0.11.1

1 year ago

Adds WASM support and support for staggered maps.

Changelog

Added

  • WASM support + wasm feature; Check README.md for instructions on how to set it up. (#252)
  • Support for staggered maps. Maps now have an stagger_axis and stagger_index property. (#262)
  • as_x functions for layer types. (#235)

PRs Merged

New Contributors

Full Changelog: https://github.com/mapeditor/rs-tiled/compare/v0.11.0...v0.11.1

v0.11.0

1 year ago

A really big feature update that adds support for virtual file systems, templates, text objects and more!

If you are planning to upgrade to the new version, check out the full release notes on the CHANGELOG.

What's Changed

Full Changelog: https://github.com/mapeditor/rs-tiled/compare/v0.10.3...v0.11.0###

v0.10.3

1 year ago

Adds support for Wang Sets, Tiled 1.9, tile offsets and updates deps.

What's Changed

New Contributors

Full Changelog: https://github.com/mapeditor/rs-tiled/compare/v0.10.2...v0.10.3

v0.10.2

2 years ago

This update fixes some small issues and also adds basic chunk utilities as described in #210, improving infinite tile layer usage.

What's Changed

Full Changelog: https://github.com/mapeditor/rs-tiled/compare/v0.10.1...v0.10.2

v0.10.1

2 years ago

This update fixes a small documentation issue and adds a more streamlined way of loading assets. The old methods for loading maps and tilesets have been deprecated.

Before:

use tiled::{FilesystemResourceCache, Map};

fn main() {
    let map = Map::parse_file(
        "assets/tiled_base64_zlib.tmx",
        &mut FilesystemResourceCache::new(),
    )
    .unwrap();
    println!("{:?}", map);
    println!("{:?}", map.tilesets()[0].get_tile(0).unwrap().probability);
}

Now:

use tiled::Loader;

fn main() {
    let mut loader = Loader::new();
    let map = loader.load_tmx_map("assets/tiled_base64_zlib.tmx").unwrap();
    println!("{:?}", map);
    println!("{:?}", map.tilesets()[0].get_tile(0).unwrap().probability);
    
    let tileset = loader.load_tsx_tileset("assets/tilesheet.tsx").unwrap();
    assert_eq!(*map.tilesets()[0], tileset);
}

See the docs for more detail.

What's Changed

New Contributors

Full Changelog: https://github.com/mapeditor/rs-tiled/compare/v0.10.0...v0.10.1

v0.10.0

2 years ago

A big update!

This new release changes the entire interface, focusing on making everything more streamlined. The four most important changes are:

  • Introduction of the ResourceCache trait, used to speed up loading for maps that share external assets (for now, only tilesets).
  • Hiding global IDs from the interface, translating to tileset index + local tile ID on load.
  • Introducing wrappers over data types (e.g. Layer, Tile, Object, etc) which Defer to the regular data types, but conveniently also contain a reference to the parent structure (Tileset in the case of tiles, Map for everything else) for easy access to functions that require both the data type and its container.
  • Adding documentation to the entire crate!

Of course, there have been a lot of more additions and changes, including new features, bugfixes and everything in between.

For 0.9.5 users it is very recommended that you check out the new examples for porting old code over.

Another important update is that the repository has been moved to the official mapeditor organization and there are now three more maintainers: @aleokdev (me), @bjorn (creator of Tiled) and @PieKing1215.

I'd like to thank @mattyhall for having maintained this crate for the last 7 years and for letting us continue the work of maintaining it, @bjorn for all the code reviews and feedback provided, and of course all the contributors that have joined us and users who have provided feedback and bug reports!

Here's the full changelog:

What's Changed

New Contributors

Full Changelog: https://github.com/mapeditor/rs-tiled/compare/v0.9.5...v0.10.0

v0.9.5

2 years ago

Added

  • Support for file properties.

Fixed

  • Parsing csv data without newlines (LDtk).