Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to bevy 0.8 #3

Merged
merged 2 commits into from
Sep 21, 2022
Merged

Update to bevy 0.8 #3

merged 2 commits into from
Sep 21, 2022

Conversation

eLVas
Copy link
Contributor

@eLVas eLVas commented Sep 20, 2022

@MrGVSV I hope you don't mind me updating this library to work with bevy 0.8

Except for updating dependencies.
Because of this change in bevy_asset crate, there was one small update that needed to be made to library code.

I have needed to do some changes to example.

@MrGVSV
Copy link
Owner

MrGVSV commented Sep 20, 2022

No problem, thanks for the contribution! I'll take a look at this tonight.

Copy link
Owner

@MrGVSV MrGVSV left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good and runs fine! Just one small change.

.add_system_set(SystemSet::on_enter(AppState::LoadTileset).with_system(load_tiles))
.add_system_set(SystemSet::on_update(AppState::LoadTileset).with_system(load_tiles))
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rather than changing this, can you instead change this line from set to overwrite_set?https://github.com/MrGVSV/bevy_tile_atlas/blob/main/examples/atlas.rs#L57-L57

The result is pretty much the same either way, but loading the tileset on enter feels more idiomatic.

@MrGVSV MrGVSV merged commit 0a6f24e into MrGVSV:main Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants