bevy_prototype_parallax/
lib.rs

1mod layer;
2mod window_size;
3use bevy::prelude::*;
4
5pub use layer::{Layer, LayerComponents};
6pub use window_size::WindowSize;
7/// The plugin that enables parallax backgrounds
8/// Note you will still need to make sure you add a background entity
9pub struct ParallaxPlugin;
10impl Plugin for ParallaxPlugin {
11    fn build(&self, app: &mut AppBuilder) {
12        app.add_system(layer::layer_movement_system.system());
13        app.add_system(layer::children_count_system.system());
14        app.add_system(layer::children_layout_system.system());
15        app.add_system(window_size::window_size.system());
16    }
17}