use bevy::prelude::*; use rand::{rngs::StdRng, Rng, SeedableRng}; fn main() { App::build() .add_default_plugins() .add_system(build_move_system()) .add_plugin(DiagnosticsPlugin { print_diagnostics: true, ..Default::default() }) .setup(setup) .run(); } fn build_move_system() -> Box { SystemBuilder::new("move") .read_resource::