//! Demonstrates picking for sprites and sprite atlases. //! By default, the sprite picking backend considers a sprite only when a pointer is over an opaque pixel. 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