#NEWLINE# def __init__( self , x , y , color_code , width = PLAYER . width , height = PLAYER . height ) : #NEWLINE# #INDENT# Movable . __init__ ( self , x , y , color_code , width , height ) #NEWLINE# mixer . init ( ) #NEWLINE# self . assets = ASSETS . player #NEWLINE# self . color_code = color_code #NEWLINE# self . image = self . assets . get_idle_frames ( color_code ) [ 0 ] #NEWLINE# self . image = pygame . transform . smoothscale ( self . image , ( PLAYER . width , PLAYER . height ) ) #NEWLINE# self . rect = self . image . get_rect ( ) #NEWLINE# self . rect . x = x #NEWLINE# self . rect . y = y #NEWLINE# self . width = width #NEWLINE# self . height = height #NEWLINE# self . carrying_weapon = False #NEWLINE# self . foundExit = False #NEWLINE# self . alive = True #NEWLINE# self . collision_group = pygame . sprite . Group ( ) #NEWLINE# self . cool_down = 30 #NEWLINE# self . idle_frames = self . assets . get_idle_frames ( self . color_code ) #NEWLINE# self . frames = self . assets . get_walk_frames ( self . color_code )