// move the snake after a set amount of 'wait time' so the snake isnt too fast
move the snake after a set amount of 'wait time' so the snake isnt too fast
move the snake after a set amount of ' wait time ' so the snake isnt too fast
pub fn update(&mut self, size: Size, dt: f64, direction: Direction) {
        self.wait += dt;
        if self.wait > SNAKE_WAIT {
            self.mv(size, direction);
        }
    }
pub fn update ( & mut self , size : Size , dt : f64 , direction : Direction ) { self . wait += dt ; if self . wait > SNAKE_WAIT { self . mv ( size , direction ) ; } }
move the snake after a set amount of 'wait time' so the snake isnt too fast
move the snake after a set amount of ' wait time ' so the snake isnt too fast
&mut self
size
Size
dt
f64
direction
Direction