pub fn new(sprite: SpriteId) -> Roid {
        Roid {
            sprite:     sprite,
            x:          random::<f64>() * 1000.0,
            y:          random::<f64>() * 1000.0,
            vel_x:      random::<f64>() * 3.0 - 1.5,
            vel_y:      random::<f64>() * 3.0 - 1.5,
            angle:      random::<f64>() * 360.0,
            rotation:   random::<f64>() * 8.0 - 4.0
        }        
    }
///
/// Creates a new 'roid state
///
Creates a new 'roid state
Creates a new ' roid state
pub fn new(sprite: SpriteId) -> Roid {
        Roid {
            sprite:     sprite,
            x:          random::<f64>() * 1000.0,
            y:          random::<f64>() * 1000.0,
            vel_x:      random::<f64>() * 3.0 - 1.5,
            vel_y:      random::<f64>() * 3.0 - 1.5,
            angle:      random::<f64>() * 360.0,
            rotation:   random::<f64>() * 8.0 - 4.0
        }        
    }
pub fn new ( sprite : SpriteId ) -> Roid { Roid { sprite : sprite , x : random :: < f64 > ( ) * 1000.0 , y : random :: < f64 > ( ) * 1000.0 , vel_x : random :: < f64 > ( ) * 3.0 - 1.5 , vel_y : random :: < f64 > ( ) * 3.0 - 1.5 , angle : random :: < f64 > ( ) * 360.0 , rotation : random :: < f64 > ( ) * 8.0 - 4.0 } }
Creates a new 'roid state
Creates a new ' roid state
sprite
SpriteId