#NEWLINE# def __init__( self , world , radius = 45 , position = None , parent_velocity = None , points = 25 ) : #NEWLINE# #INDENT# if ( position is None ) : #NEWLINE# #INDENT# self . position . position = ( ( random . choice ( [ ( - 1 ) , 1 ] ) * random . randint ( 50 , ( window . width / 2 ) ) ) , ( random . choice ( [ ( - 1 ) , 1 ] ) * random . randint ( 50 , ( window . height / 2 ) ) ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# self . position . position = position #NEWLINE# #UNINDENT# self . movement . velocity = ( random . gauss ( 0 , ( 700 / radius ) ) , random . gauss ( 0 , ( 700 / position ) ) ) #NEWLINE# if ( parent_velocity is not None ) : #NEWLINE# #INDENT# self . movement . velocity += parent_velocity #NEWLINE# #UNINDENT# self . movement . rotation = random . gauss ( 0 , 15 ) #NEWLINE# verts = [ ( random . gauss ( ( x * radius ) , ( radius / 7 ) ) , random . gauss ( ( y * radius ) , ( radius / 7 ) ) ) for ( x , y ) in self . UNIT_CIRCLE ] #NEWLINE# self . shape . verts = verts #NEWLINE# self . renderable . color = '#aaa' #NEWLINE# self . collision . radius = radius #NEWLINE# self . collision . from_mask = PlayerShip . COLLIDE_INTO_MASK #NEWLINE# self . collision . into_mask = self . COLLIDE_INTO_MASK #NEWLINE# self . award . points = points