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!()); print!("Setup {0}",line!());
commands.spawn_bundle(( // commands.spawn_bundle((
camera, // camera,
projection, // projection,
frustum, // frustum,
VisibleEntities::default(), // VisibleEntities::default(),
transform, // transform,
GlobalTransform::default(), // GlobalTransform::default(),
// Camera2d, // // Camera2d,
) // )
); // );
print!("Setup {0}",line!()); print!("Setup {0}",line!());

View file

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