From v0.6.X to v0.7.X

Overview

Version 0.7 updates the crate for Bevy v0.16 and take advantage of the new TilemapAnchor component from bevy_ecs_tilemap.

Bevy v0.16 update

Bevy official migration guide

TilemapAnchor

The TiledMapAnchor component have been deprecated in favor of the TilemapAnchor component from bevy_ecs_tilemap.

This new enum contains more variants, as you can see in the API reference.

Before :


#![allow(unused)]
fn main() {
    commands.spawn((
        TiledMapHandle(asset_server.load("map.tmx")),
        TiledMapAnchor::Center,
    ));
}

After :


#![allow(unused)]
fn main() {
    commands.spawn((
        TiledMapHandle(asset_server.load("map.tmx")),
        TilemapAnchor::Center,
    ));
}