diff --git a/nothing b/nothing deleted file mode 100644 index e69de29..0000000 diff --git a/src/main.rs b/src/main.rs index da74fb6..72cf818 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,49 @@ use bevy::prelude::*; + fn main() { - App::new().run(); - println!("Hello, bevy!"); - println!("4GB VM Ram"); + App::new() + .insert_resource(GreetTimer(Timer::from_seconds(2.0, TimerMode::Repeating))) + .add_plugins(DefaultPlugins) + .add_plugins(HelloPlugin) + .run(); +} + +#[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()))); +} + +fn greet_people(time: Res