diff --git a/src/main.rs b/src/main.rs index fcb65ec..dd027cd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,9 +1,55 @@ use bevy::prelude::*; fn main() { - App::new().add_systems(Update, hello_world).run(); + App::new() + .add_plugins(DefaultPlugins) + .add_plugins(HelloPlugin) + .run(); } fn hello_world() { println!("hello world!"); } + +#[derive(Component)] +struct Person; + +#[derive(Component)] +struct Name(String); + +fn add_people(mut commands: Commands) { + commands.spawn((Person, Name("Elaina Proctor".to_string()))); + commands.spawn((Person, Name("Renzo Hume".to_string()))); + commands.spawn((Person, Name("Zayna Nieves".to_string()))); +} + +#[derive(Resource)] +struct GreetTimer(Timer); + +fn greet_people(time: Res