#NEWLINE# def __init__( self , pos_init , width , color , SCREEN_WIDTH , SCREEN_HEIGHT , rng ) : #NEWLINE# #INDENT# pygame . sprite . Sprite . __init__ ( self ) #NEWLINE# self . pos = vec2d ( pos_init ) #NEWLINE# self . color = color #NEWLINE# self . SCREEN_WIDTH = SCREEN_WIDTH #NEWLINE# self . SCREEN_HEIGHT = rng #NEWLINE# self . width = width #NEWLINE# self . rng = rng #NEWLINE# image = pygame . Surface ( ( width , width ) ) #NEWLINE# image . fill ( ( 0 , 0 , 0 , 0 ) ) #NEWLINE# image . set_colorkey ( ( 0 , 0 , 0 ) ) #NEWLINE# pygame . draw . rect ( image , color , ( 0 , 0 , self . width , self . width ) , 0 ) #NEWLINE# self . image = image #NEWLINE# self . rect = self . image . get_rect ( ) #NEWLINE# self . rect . center = pos_init