fn initialise_camera(&mut self, world: &mut World) {
        let mut transform = Transform::default();
        transform.translation.z = 1.0;

        world.create_entity()
            .with(Camera::from(Projection::orthographic(
                0.0,
                self.config.dimensions.unwrap().0 as f32,
                self.config.dimensions.unwrap().1 as f32,
                0.0
            )))
            .with(transform)
            .build();
    }
// create a camera that should have the same dimensions as the
// display_config.ron. TODO: use the dimensions
create a camera that should have the same dimensions as the
display_config.ron. TODO: use the dimensions
create a camera that should have the same dimensions as the display_config . ron . TODO : use the dimensions
fn initialise_camera(&mut self, world: &mut World) {
        let mut transform = Transform::default();
        transform.translation.z = 1.0;
        world.create_entity()
            .with(Camera::from(Projection::orthographic(
                0.0,
                self.config.dimensions.unwrap().0 as f32,
                self.config.dimensions.unwrap().1 as f32,
                0.0
            )))
            .with(transform)
            .build();
    }
fn initialise_camera ( & mut self , world : & mut World ) { let mut transform = Transform :: default ( ) ; transform . translation . z = 1.0 ; world . create_entity ( ) . with ( Camera :: from ( Projection :: orthographic ( 0.0 , self . config . dimensions . unwrap ( ) . 0 as f32 , self . config . dimensions . unwrap ( ) . 1 as f32 , 0.0 ) ) ) . with ( transform ) . build ( ) ; }
create a camera that should have the same dimensions as the
display_config.ron.
create a camera that should have the same dimensions as the display_config . ron .
&mut self
world
&mut World
&mut self
world
&mut World