{"id":15018014,"url":"https://github.com/abnormalbrain/bevy_particle_systems","last_synced_at":"2025-04-04T08:03:03.049Z","repository":{"id":37782922,"uuid":"477841296","full_name":"abnormalbrain/bevy_particle_systems","owner":"abnormalbrain","description":"A native and WASM compatible Particle System implementation for Bevy","archived":false,"fork":false,"pushed_at":"2024-12-02T02:42:13.000Z","size":16851,"stargazers_count":68,"open_issues_count":13,"forks_count":12,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-28T07:04:39.230Z","etag":null,"topics":["bevy","game-development","rust"],"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/abnormalbrain.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":"2022-04-04T19:18:24.000Z","updated_at":"2025-03-13T20:35:50.000Z","dependencies_parsed_at":"2024-02-19T06:30:32.249Z","dependency_job_id":"7f96f688-3fb8-4632-8615-cb2170ce23ab","html_url":"https://github.com/abnormalbrain/bevy_particle_systems","commit_stats":{"total_commits":77,"total_committers":9,"mean_commits":8.555555555555555,"dds":0.6363636363636364,"last_synced_commit":"d19568be43383c386de72b81abba0464eb0b63d4"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abnormalbrain%2Fbevy_particle_systems","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abnormalbrain%2Fbevy_particle_systems/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abnormalbrain%2Fbevy_particle_systems/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abnormalbrain%2Fbevy_particle_systems/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abnormalbrain","download_url":"https://codeload.github.com/abnormalbrain/bevy_particle_systems/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247142014,"owners_count":20890651,"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","game-development","rust"],"created_at":"2024-09-24T19:51:19.260Z","updated_at":"2025-04-04T08:03:03.028Z","avatar_url":"https://github.com/abnormalbrain.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# bevy_particle_systems\n\n[![Crates.io](https://img.shields.io/crates/v/bevy_particle_systems)](https://crates.io/crates/bevy_particle_systems)\n[![docs](https://docs.rs/bevy_particle_systems/badge.svg)](https://docs.rs/bevy_particle_systems/)\n[![MIT](https://img.shields.io/crates/l/bevy_particle_systems)](./LICENSE)\n\nA native and WASM-compatible 2D particle system plugin for [bevy](https://bevyengine.org)\n\n**Note: This crate is still under development and its API may change between releases.**\n\n## Example\n\n![](https://github.com/abnormalbrain/bevy_particle_systems/blob/main/assets/example.gif)\n \nThe above was captured running a release build of the `basic` example, `cargo run --example basic --release`, and ran at 190-200 FPS on a\n2019 Intel i9 MacBook Pro, rendering about 10k particles.\n\n```\nINFO bevy diagnostic: frame_time                      :    5.125810ms (avg 5.211673ms)\nINFO bevy diagnostic: fps                             :  206.027150   (avg 204.176718)\nINFO bevy diagnostic: entity_count                    : 11358.713999   (avg 11341.450000)\n```\n\n## Usage\n\n1. Add the [`ParticleSystemPlugin`] plugin.\n\n```rust\nuse bevy::prelude::*;\nuse bevy_particle_systems::ParticleSystemPlugin;\n\nfn main() {\n    App::new()\n        .add_plugins((DefaultPlugins, ParticleSystemPlugin)) // \u003c-- Add the plugin\n        // ...\n        .add_systems(Startup, spawn_particle_system)\n        .run();\n}\n\nfn spawn_particle_system() { /* ... */ }\n```\n\n2. Spawn a particle system whenever necessary.\n```rust\nuse bevy::prelude::*;\nuse bevy_particle_systems::*;\n\nfn spawn_particle_system(mut commands: Commands, asset_server: Res\u003cAssetServer\u003e) {\n    commands\n    // Add the bundle specifying the particle system itself.\n    .spawn(ParticleSystemBundle {\n        particle_system: ParticleSystem {\n            max_particles: 10_000,\n            texture: ParticleTexture::Sprite(asset_server.load(\"my_particle.png\")),\n            spawn_rate_per_second: 25.0.into(),\n            initial_speed: JitteredValue::jittered(3.0, -1.0..1.0),\n            lifetime: JitteredValue::jittered(8.0, -2.0..2.0),\n            color: ColorOverTime::Gradient(Gradient::new(vec![\n                ColorPoint::new(Color::WHITE, 0.0),\n                ColorPoint::new(Color::srgba(0.0, 0.0, 1.0, 0.0), 1.0),\n            ])),\n            looping: true,\n            system_duration_seconds: 10.0,\n            ..ParticleSystem::default()\n        },\n        ..ParticleSystemBundle::default()\n    })\n    // Add the playing component so it starts playing. This can be added later as well.\n    .insert(Playing);\n}\n```\n\n## Bevy Versions\n\n|`bevy_particle_systems`|`bevy`|\n|:--|:--|\n|0.13|0.14|\n|0.12|0.13|\n|0.11|0.12|\n|0.10|0.11|\n|0.9|0.10|\n|0.6 - 0.8|0.9|\n|0.5|0.8|\n|0.4|0.7|\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabnormalbrain%2Fbevy_particle_systems","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabnormalbrain%2Fbevy_particle_systems","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabnormalbrain%2Fbevy_particle_systems/lists"}