Add other machine placeholder sprites
This commit is contained in:
17
src/main.rs
17
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::<CuttingMachine>);
|
||||
@@ -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::<RotatingMachine>);
|
||||
|
||||
// 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<M: SpawnUi>(
|
||||
|
||||
Reference in New Issue
Block a user