diff --git a/src/main.rs b/src/main.rs index 32ff853..6400d5d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -47,7 +47,7 @@ fn dummy_machines(mut commands: Commands) { commands .spawn(( Sprite::from_color(RED, Vec2::splat(40.0)), - Transform::default(), + Transform::from_translation(Vec3::new(-40.0, 40.0, 0.0)), Pickable::default(), )) .observe(spawn_machine_ui::); @@ -55,12 +55,23 @@ fn dummy_machines(mut commands: Commands) { commands .spawn(( Sprite::from_color(GREEN, Vec2::splat(40.0)), - Transform::from_translation(Vec3::new(80.0, 0.0, 0.0)), + Transform::from_translation(Vec3::new(40.0, 40.0, 0.0)), Pickable::default(), )) .observe(spawn_machine_ui::); - // TODO: The other machines, once they have a spawner struct & impl. + // TODO: The other observers, once they have a spawner struct & impl. + commands.spawn(( + Sprite::from_color(PURPLE, Vec2::splat(40.)), + Transform::from_translation(Vec3::new(-40.0, -40.0, 0.0)), + Pickable::default(), + )); + + commands.spawn(( + Sprite::from_color(DARK_ORANGE, Vec2::splat(40.)), + Transform::from_translation(Vec3::new(40.0, -40.0, 0.0)), + Pickable::default(), + )); } fn spawn_machine_ui(