pub fn tick(&mut self) {
        self.ship.tick();
        self.roids.iter_mut().for_each(|roid| roid.tick());
        self.bullets.iter_mut().for_each(|bullet| bullet.tick());

        self.bullets.retain(|bullet| bullet.time_left > 0);
    }
///
/// Updates the game state after a tick
///
Updates the game state after a tick
Updates the game state after a tick
pub fn tick(&mut self) {
        self.ship.tick();
        self.roids.iter_mut().for_each(|roid| roid.tick());
        self.bullets.iter_mut().for_each(|bullet| bullet.tick());
        self.bullets.retain(|bullet| bullet.time_left > 0);
    }
pub fn tick ( & mut self ) { self . ship . tick ( ) ; self . roids . iter_mut ( ) . for_each ( | roid | roid . tick ( ) ) ; self . bullets . iter_mut ( ) . for_each ( | bullet | bullet . tick ( ) ) ; self . bullets . retain ( | bullet | bullet . time_left > 0 ) ; }
Updates the game state after a tick
Updates the game state after a tick
&mut self