{"id":24380478,"url":"https://github.com/rayanmargham/bevy_xml","last_synced_at":"2025-04-10T22:54:14.638Z","repository":{"id":161508156,"uuid":"636257359","full_name":"rayanmargham/bevy_xml","owner":"rayanmargham","description":"Bevy XML Parser","archived":false,"fork":false,"pushed_at":"2024-01-18T00:26:35.000Z","size":20,"stargazers_count":5,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-10T22:54:09.474Z","etag":null,"topics":["bevy","bevy-engine","bevy-plugin","fnf","rust","vulkan","wgpu","xml"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/rayanmargham.png","metadata":{"files":{"readme":"README.md","changelog":null,"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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-05-04T12:55:54.000Z","updated_at":"2024-02-29T01:31:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"da0c8c08-247d-4684-84eb-7d3de593d8ea","html_url":"https://github.com/rayanmargham/bevy_xml","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/rayanmargham%2Fbevy_xml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayanmargham%2Fbevy_xml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayanmargham%2Fbevy_xml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rayanmargham%2Fbevy_xml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rayanmargham","download_url":"https://codeload.github.com/rayanmargham/bevy_xml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248312172,"owners_count":21082638,"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":["bevy","bevy-engine","bevy-plugin","fnf","rust","vulkan","wgpu","xml"],"created_at":"2025-01-19T08:19:27.042Z","updated_at":"2025-04-10T22:54:14.621Z","avatar_url":"https://github.com/rayanmargham.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Following released Bevy versions](https://img.shields.io/badge/Bevy%20tracking-released%20version-lightblue)](https://bevyengine.org/learn/book/plugin-development/#main-branch-tracking) [![crates.io](https://img.shields.io/crates/v/bevy_xml)](https://crates.io/crates/bevy_xml) [![docs.rs](https://docs.rs/bevy_xml/badge.svg)](https://docs.rs/bevy_xml)\n\n# Bevy Sparrow XML Parser\n\nThis Crate is a plugin for [Bevy](https://bevyengine.org/) to parse SpriteSheet XMLs! Most Useful in using assets from Adobe Animate.\n\n## Using this Crate\n\nHere below is some example code on how'd you use the crate:\n\n```rust ignore\nuse bevy::prelude::*;\nuse bevy_xml::*;\n\nfn main()\n{\n    app\n        .add_system(bevy_xml::tick_animations)\n        .run();\n}\nfn your_startup_system(mut texture_atlases: ResMut\u003cAssets\u003cTextureAtlas\u003e\u003e, asset_loader: Res\u003cAssetServer\u003e)\n{\n    let bfs = texture_atlases.add(TextureAtlas::new_empty(asset_loader.load(\"images/bf.png\"), Vec2::new(8192.0, 4096.0))); // handle\n    let Some(bf) = texture_atlases.get_mut(\u0026bfs) else { return };\n    let xml = SpriteXMLBundle::new(\"assets/images/bf.xml\".to_string(), \u0026bfs, bf);\n\n    match xml {\n        Some(c) =\u003e\n        {\n            c.add_anim_from_prefix(\"Epic Animation\", false, 24); // anim name, is the animation looped?, fps\n            c.apply_offsets(); // applies inital offset\n            c.set_anim(\"Epic Animation\", bf, true); // sets the current animation\n                    // anim name^  sprite^   ^ set the current frame to zero?\n            commands.spawn(c);\n        },\n        None =\u003e\n        {\n            error!(\"Failed to Parse XML!\");\n        }\n\n    }\n}\n\n\n```\n\n## What this Crate gives you\n\nThis crate now has an animation system, support for 3D sprites and much more!\n\n## Disclaimer!\n\nI've never published a crate before so if there are any issues please give me feedback!\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayanmargham%2Fbevy_xml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frayanmargham%2Fbevy_xml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frayanmargham%2Fbevy_xml/lists"}