#NEWLINE# def make_gold_box( self ) : #NEWLINE# #INDENT# 'Make the box to display total gold' #NEWLINE# image = setup . GFX [ 'goldbox' ] #NEWLINE# rect = image . get_rect ( bottom = 608 , right = 800 ) #NEWLINE# surface = pg . Surface ( rect . size ) #NEWLINE# surface . set_colorkey ( c . BLACK ) #NEWLINE# surface . blit ( image , ( 0 , 0 ) ) #NEWLINE# gold = self . player_inventory [ 'GOLD' ] [ 'quantity' ] #NEWLINE# text = ( 'Gold: ' + str ( gold ) ) #NEWLINE# text_render = self . font . render ( surface , True , c . NEAR_BLACK ) #NEWLINE# text_rect = text_render . get_rect ( x = 80 , y = 60 ) #NEWLINE# surface . blit ( text_render , text_rect ) #NEWLINE# sprite = pg . sprite . Sprite ( ) #NEWLINE# sprite . image = surface #NEWLINE# sprite . rect = rect #NEWLINE# return sprite