this lets the enemy squirrels continue to be animated and moving around for few seconds after the player dies and before the next game starts the --game over screen|in squirrel eat squirrel does not wait until the player presses key before new game starts winning check if the player has won if winmodedisplaysurf blit(winsurfwinrectdisplaysurf blit(winsurf winrect pygame display update(fpsclock tick(fpsthe winmode variable is set to true on line if the player has reached certain size (which is dictated by the winsize constantall that happens when the player has won is that the --you have achieved omega squirrel!|text (which is on the surface object stored in the winsurf variableand the --(press -- |to restart )|text (which is on the surface object stored in the winsurf variableappears on the screen the game continues until the user presses the keyat which point the program execution will return from rungame(the event handling code for the key is done on lines and drawing graphical health meter def drawhealthmeter(currenthealth) for in range(currenthealth)draw red health bars pygame draw rect(displaysurfred( ( maxhealthi ) for in range(maxhealth)draw the white outlines pygame draw rect(displaysurfwhite( ( maxhealthi ) to draw the health meterfirst the for loop on line draws the filled-in red rectangle for the amount of health the player has then the for loop on line draws an unfilled white rectangle for all of the possible health the player could have (which is the integer value stored in the maxhealth constantnote that the pygame display update(function is not called in drawhealthmeter(the same old terminate(function def terminate() pygame quit( sys exit(email questions to the authoral@inventwithpython com