From 4ae6743e481952f65024210c10c178daf6f47d22 Mon Sep 17 00:00:00 2001 From: Hartmut Seichter Date: Wed, 16 Nov 2022 23:32:35 +0100 Subject: [PATCH] more updates to migrate to bevy 0.9 --- src/scene.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/scene.rs b/src/scene.rs index e6db6c7..1da4c85 100644 --- a/src/scene.rs +++ b/src/scene.rs @@ -17,6 +17,12 @@ pub struct Position { x: f32, y: f32 } pub fn build_scene(mut commands: Commands) { + commands.spawn(( + Person, + Position { x: 10.0, y: 10.0 } + + ) + ); // commands.spawn() // .insert(Person) // .insert(Position { x: 10.0, y: 10.0 } );