///
/// Updates the 'roid state after a tick
///
Updates the 'roid state after a tick
Updates the ' roid state after a tick
pub fn tick(&mut self) {
        // Move the 'roid
        self.x      += self.vel_x;
        self.y      += self.vel_y;
        self.angle  += self.rotation;
        self.angle  = self.angle % 360.0;
        // Clip to the play area
        if self.x < 0.0 { self.x = 1000.0 };
        if self.y < 0.0 { self.y = 1000.0 };
        if self.x > 1000.0 { self.x = 0.0 };
        if self.y > 1000.0 { self.y = 0.0 };
    }
pub fn tick ( & mut self ) { // Move the 'roid self . x += self . vel_x ; self . y += self . vel_y ; self . angle += self . rotation ; self . angle = self . angle % 360.0 ; // Clip to the play area if self . x < 0.0 { self . x = 1000.0 } ; if self . y < 0.0 { self . y = 1000.0 } ; if self . x > 1000.0 { self . x = 0.0 } ; if self . y > 1000.0 { self . y = 0.0 } ; }
Updates the 'roid state after a tick
Updates the ' roid state after a tick
&mut self
<not_specific>