/// This showcases a potentially better way to handle breaking apart a circular texture-based /// sprite. use bevy::prelude::*; use bevy_despawn_particles::prelude::*; #[derive(Component, Default)] pub struct Marker; pub struct MyTimer(pub Timer); impl Default for MyTimer { fn default() -> Self { Self(Timer::from_seconds(0.5, TimerMode::Once)) } } fn main() { App::new() .add_plugins(DefaultPlugins) .add_plugins(DespawnParticlesPlugin) .add_systems(Startup, setup) .add_systems(Update, tick) .insert_resource(DespawnParticlesConfig { max_particles: 320 }) .run(); } fn setup(mut commands: Commands, asset_server: Res) { commands.spawn(Camera2dBundle::default()); spawn(commands, asset_server); } fn tick( mut timer: Local, time: Res