Skip to content

New Features#9

Open
gnarhard wants to merge 10 commits intoBrixto:masterfrom
gnarhard:feature/load_atlas_and_image_from_storage
Open

New Features#9
gnarhard wants to merge 10 commits intoBrixto:masterfrom
gnarhard:feature/load_atlas_and_image_from_storage

Conversation

@gnarhard
Copy link

  • Support for reading atlas file from file storage
  • Get individual sprite or list of sprites by keyword

Copy link
Contributor

@spydon spydon left a comment

Choose a reason for hiding this comment

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

Nice!

If you are using file storage, grab your atlas file like this:

```Dart
final atlas = await fromAtlas("${(await getApplicationDocumentsDirectory()).path}/FlamAtlasMap.atlas", fromStorage: true);
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
final atlas = await fromAtlas("${(await getApplicationDocumentsDirectory()).path}/FlamAtlasMap.atlas", fromStorage: true);
final atlas = await fromAtlas("${(await getApplicationDocumentsDirectory()).path}/FlameAtlasMap.atlas", fromStorage: true);

@gnarhard
Copy link
Author

@Brixto Any chance this can get merged in soon? I've been using the code for 5 months and haven't encountered issues.

@matthiasn
Copy link

@gnarhard great job, working well. @Brixto please consider merging and also cutting a release, please.

@Brixto
Copy link
Owner

Brixto commented Jan 19, 2024

@spydon proposed to merge this plugin to the flame monorepo. I'm not able to acitvitly maintain this repo here, so i think this is a good idea to switch over to the main repo. @spydon is working on the migration

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.

4 participants