From c7fd053fd1e79f156ed51a624f19e2f4f69c7ae0 Mon Sep 17 00:00:00 2001 From: Robert Garrett Date: Wed, 27 Aug 2025 13:47:01 -0500 Subject: [PATCH] Add other machine placeholder sprites --- src/main.rs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) 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(