{"id":13528674,"url":"https://github.com/Brixto/flame_texturepacker","last_synced_at":"2025-04-01T14:32:42.861Z","repository":{"id":45052262,"uuid":"233870586","full_name":"Brixto/flame_texturepacker","owner":"Brixto","description":null,"archived":false,"fork":false,"pushed_at":"2024-01-21T11:00:11.000Z","size":526,"stargazers_count":22,"open_issues_count":2,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-11-02T15:35:38.456Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Brixto.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2020-01-14T15:19:31.000Z","updated_at":"2024-04-01T22:35:07.000Z","dependencies_parsed_at":"2024-01-03T03:54:48.131Z","dependency_job_id":"c7c66022-1ca5-475a-b002-39f88cab2cea","html_url":"https://github.com/Brixto/flame_texturepacker","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brixto%2Fflame_texturepacker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brixto%2Fflame_texturepacker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brixto%2Fflame_texturepacker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Brixto%2Fflame_texturepacker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Brixto","download_url":"https://codeload.github.com/Brixto/flame_texturepacker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246655206,"owners_count":20812597,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T07:00:22.621Z","updated_at":"2025-04-01T14:32:42.103Z","avatar_url":"https://github.com/Brixto.png","language":"Dart","funding_links":[],"categories":["Plugins \u0026 Libraries"],"sub_categories":["Examples"],"readme":"# Note: This repostitory has moved to the [Flame monorepo](https://github.com/flame-engine/flame/tree/main/packages/flame_texturepacker)\n\n---\n\n# flame_texturepacker\n\nA flame plugin to import sprite sheets generated by [Gdx Texture Packer][2] and [Code and Web Texture Packer][1]\n\n## Install from Dart Pub\n\nInclude the following to your pubspec.yaml file:\n\n```yaml\ndependencies:\n  flame_texturepacker: any\n ```\n \n## Usage\n \nDrop generated atlas file and sprite sheet images into the  `assets/` and link the files in your `pubspec.yaml` file:\n \n```yaml\n assets:\n    - assets/spriteSheet.atlas\n    - assets/spriteSheet.png\n ```\n \nImport the plugin like this:\n\n`import 'package:flame_texturepacker/flame_texturepacker.dart';`\n \nLoad the TextureAtlas passing the path of the sprite sheet atlas file:\n\n```Dart\nfinal atlas = await fromAtlas('FlameAtlasMap.atlas');\n```\n\nGet a list of sprites ordered by their index, you can use the list to generate an animation:\n \n```Dart\nfinal spriteList = atlas.findSpritesByName('robot_walk');\n\nfinal animation = SpriteAnimation.spriteList(\n spriteList,\n stepTime: 0.1,\n loop: true,\n);\n ```\n\nGet individual sprites by name:\n\n```Dart\nfinal jumpSprite = atlas.findSpriteByName('robot_jump')!;\nfinal fallSprite = atlas.findSpriteByName('robot_fall')!;\nfinal idleSprite = atlas.findSpriteByName('robot_idle')!;\n```\n\nFull working example can be found in [example folder][3].\n\nNote: Sprites used in this example can be found OpenGameArt [here][4].\n\n[1]: https://www.codeandweb.com/texturepacker 'Code \u0026 Web Texture Packer'\n[2]: https://github.com/crashinvaders/gdx-texture-packer-gui 'Gdx Texture Packer'\n[3]: /example/lib/main.dart 'Full working example'\n[4]: https://opengameart.org/content/toon-characters-1 'Robot sprite'\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBrixto%2Fflame_texturepacker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FBrixto%2Fflame_texturepacker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FBrixto%2Fflame_texturepacker/lists"}