//! Demonstrates picking for sprites and sprite atlases. The picking backend only tests against the //! sprite bounds, so the sprite atlas can be picked by clicking on its transparent areas. use bevy::{prelude::*, sprite::Anchor}; use std::fmt::Debug; fn main() { App::new() .add_plugins(DefaultPlugins.set(ImagePlugin::default_nearest())) .add_systems(Startup, (setup, setup_atlas)) .add_systems(Update, (move_sprite, animate_sprite)) .run(); } fn move_sprite( time: Res