pub struct Config {
pub width: u32,
pub height: u32,
pub gravity: f64,
pub flap_speed: f64,
pub pipe_width: u32,
pub pipe_interval: u32,
pub pipe_mouth_height: u32,
pub pipe_speed: f64,
}Fields§
§width: u32game window width
height: u32game window height
gravity: f64acceleration of gravity that pulls bird down
flap_speed: f64init speed after flap
pipe_width: u32horizontal length of pipe
pipe_interval: u32horizontal space between two pipes
pipe_mouth_height: u32vertical space between pipes
pipe_speed: f64speed of pipe
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more