From 6347b4f4ff13c761283862bac0efe53b40f63101 Mon Sep 17 00:00:00 2001 From: OMGeeky Date: Sun, 13 Apr 2025 14:32:51 +0200 Subject: [PATCH] finish getting started guide --- src/main.rs | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/main.rs b/src/main.rs index 632e254..5ff9d23 100644 --- a/src/main.rs +++ b/src/main.rs @@ -24,13 +24,15 @@ fn add_people(mut commands: Commands) { commands.spawn((Person, Name("Renzo Hume".to_string()))); commands.spawn((Person, Name("Zayna Nieves".to_string()))); } -#[derive(Component)] +#[derive(Resource)] struct GreetTimer(Timer); //endregion //region query -fn greet_people(query: Query<&Name, With>) { - for name in &query { - println!("hello {}!", name.0); +fn greet_people(time: Res