### Running the Example Source: https://github.com/drakmaniso/bevy_pixel_camera/blob/main/README.md Command to compile and run the included example project to see the plugin in action. ```console cargo run --example flappin ``` -------------------------------- ### Basic Setup and Usage Source: https://github.com/drakmaniso/bevy_pixel_camera/blob/main/README.md Demonstrates how to set up a Bevy application with the PixelCameraPlugin. It configures a Camera2dBundle with PixelZoom for fitting a target resolution and PixelViewport for automatic viewport management. Includes spawning a sprite with an adjusted anchor. ```rust use bevy::prelude::* use bevy::sprite::Anchor use bevy_pixel_camera:: PixelCameraPlugin, PixelZoom, PixelViewport, fn main() { App::new() .add_plugins(DefaultPlugins.set(ImagePlugin::default_nearest())) .add_plugins(PixelCameraPlugin) .add_systems(Startup, setup) .run(); } fn setup( mut commands: Commands, asset_server: Res, ) { commands.spawn(( Camera2dBundle::default(), PixelZoom::FitSize { width: 320, height: 180, }, PixelViewport, )); commands.spawn(SpriteBundle { texture: asset_server.load("my-pixel-art-sprite.png"), sprite: Sprite { anchor: Anchor::BottomLeft, ..Default::default() }, ..Default::default() }); } ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.