File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -38,10 +38,12 @@ to a pixel grid. It works by moving the canvas in the opposite direction of the
3838 use bevy::prelude::* ;
3939 use bevy_smooth_pixel_camera::prelude::* ;
4040
41- App::new ().add_plugins((
42- DefaultPlugins.set(ImagePlugin::default_nearest()) ,
43- PixelCameraPlugin
44- )).run ();
41+ App::new ()
42+ .add_plugins((
43+ DefaultPlugins.set(ImagePlugin::default_nearest()) ,
44+ PixelCameraPlugin,
45+ ))
46+ .run ();
4547 ` ` `
4648
47493. Add a [` PixelCamera` ](https://docs.rs/bevy_smooth_pixel_camera/latest/bevy_smooth_pixel_camera/components/struct.PixelCamera.html) to your world.
Original file line number Diff line number Diff line change 2525//! use bevy::prelude::*;
2626//! use bevy_smooth_pixel_camera::prelude::*;
2727//!
28- //! App::new().add_plugins((
29- //! DefaultPlugins.set(ImagePlugin::default_nearest()),
30- //! PixelCameraPlugin
31- //! )).run();
28+ //! App::new()
29+ //! .add_plugins((
30+ //! DefaultPlugins.set(ImagePlugin::default_nearest()),
31+ //! PixelCameraPlugin,
32+ //! ))
33+ //! .run();
3234//! ```
3335//!
3436//! 3. Add a [`PixelCamera`](crate::components::PixelCamera) to your world.
You can’t perform that action at this time.
0 commit comments