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