more updates to migrate to bevy 0.9

This commit is contained in:
Hartmut Seichter 2022-11-16 23:32:35 +01:00
parent 5961b984f8
commit 4ae6743e48

View file

@ -17,6 +17,12 @@ pub struct Position { x: f32, y: f32 }
pub fn build_scene(mut commands: Commands) { pub fn build_scene(mut commands: Commands) {
commands.spawn((
Person,
Position { x: 10.0, y: 10.0 }
)
);
// commands.spawn() // commands.spawn()
// .insert(Person) // .insert(Person)
// .insert(Position { x: 10.0, y: 10.0 } ); // .insert(Position { x: 10.0, y: 10.0 } );