SDL2 Particles
Rust plug and play library for creating customizable particles with SDL2 context
Preview
Example
Add crate to Cargo.toml and import everything at the beginning of your program:
use *;
Create a mutable particle state object and set its size (maximum number of particles):
let mut particles_state = init;
Declare and customize ParticleType:
let emitting_type = new
.with_color
.with_effect
.with_effect
.with_effect
.build;
Then initialize sdl2 window and context as you would do normally and create a game loop. Inside you must update and render and spawn your particles
loop
More code and previews in examples/ folder