/// Calculate coordinates of the Cam from the given player-Coordinates
Calculate coordinates of the Cam from the given player-Coordinates
Calculate coordinates of the Cam from the given player - Coordinates
pub fn calc_coordinates(&mut self, coord1: Coordinate, coord2: Coordinate, level: &mut Level) {
        let new_x = (coord1.get_x() + coord2.get_x()) / 2;
        let new_y = (coord1.get_y() + coord2.get_y()) / 2;
        self.coord.set_coord(new_x, new_y);
        self.coord.move_coord_without_cam(0, 0, self.buf_x, self.buf_y, level);
    }
pub fn calc_coordinates ( & mut self , coord1 : Coordinate , coord2 : Coordinate , level : & mut Level ) { let new_x = ( coord1 . get_x ( ) + coord2 . get_x ( ) ) / 2 ; let new_y = ( coord1 . get_y ( ) + coord2 . get_y ( ) ) / 2 ; self . coord . set_coord ( new_x , new_y ) ; self . coord . move_coord_without_cam ( 0 , 0 , self . buf_x , self . buf_y , level ) ; }
Calculate coordinates of the Cam from the given player-Coordinates
Calculate coordinates of the Cam from the given player - Coordinates
&mut self
coord1
Coordinate
coord2
Coordinate
level
&mut Level