diff --git a/src/main.rs b/src/main.rs index f211e9e..bfc3d44 100644 --- a/src/main.rs +++ b/src/main.rs @@ -3,10 +3,11 @@ use bevy::prelude::*; fn main() { App::new() .add_plugins(DefaultPlugins) - .add_system(Startup, setup) + .add_systems(Startup, setup) .run(); } -fn setup(commands: Commands) { +fn setup(mut commands: Commands) { commands.spawn(Camera2d); + commands.spawn(Text2d("hii!".into())); }