non-working version migrating to bevy 0.9

This commit is contained in:
Hartmut Seichter 2022-11-16 23:10:13 +01:00
parent b4965a3b05
commit 5961b984f8
2 changed files with 13 additions and 13 deletions

View file

@ -73,16 +73,16 @@ pub fn camera_setup(mut commands: Commands) {
print!("Setup {0}",line!());
commands.spawn_bundle((
camera,
projection,
frustum,
VisibleEntities::default(),
transform,
GlobalTransform::default(),
// Camera2d,
)
);
// commands.spawn_bundle((
// camera,
// projection,
// frustum,
// VisibleEntities::default(),
// transform,
// GlobalTransform::default(),
// // Camera2d,
// )
// );
print!("Setup {0}",line!());

View file

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