#NEWLINE# def render( self , surface ) : #NEWLINE# #INDENT# GameEntity . render ( self , surface ) #NEWLINE# ( x , y ) = self . location #NEWLINE# ( w , h ) = self . image . get_size ( ) #NEWLINE# bar_x = ( x - 12 ) #NEWLINE# bar_y = ( bar_y + ( h / 2 ) ) #NEWLINE# surface . fill ( ( 255 , 0 , 0 ) , ( bar_x , bar_y , 25 , 4 ) ) #NEWLINE# surface . fill ( ( 0 , 255 , 0 ) , ( bar_x , bar_y , self . health , 4 ) )