degrees while true displaysurf fill(bgcolor rotatedsurf pygame transform rotate(titlesurf degrees rotatedrect rotatedsurf get_rect( rotatedrect center (windowwidth windowheight displaysurf blit(rotatedsurf rotatedrect rotatedsurf pygame transform rotate(titlesurf degrees rotatedrect rotatedsurf get_rect( rotatedrect center (windowwidth windowheight displaysurf blit(rotatedsurf rotatedrect drawpresskeymsg( if checkforkeypress() pygame event get(clear event queue return pygame display update( fpsclock tick(fps degrees + rotate by degrees each frame degrees + rotate by degrees each frame def terminate() pygame quit( sys exit( def getrandomlocation() return {' 'random randint( cellwidth )' 'random randint( cellheight ) def showgameoverscreen() gameoverfont pygame font font('freesansbold ttf' gamesurf gameoverfont render('game'truewhite oversurf gameoverfont render('over'truewhite gamerect gamesurf get_rect( overrect oversurf get_rect( gamerect midtop (windowwidth overrect midtop (windowwidth gamerect height displaysurf blit(gamesurfgamerect displaysurf blit(oversurfoverrect drawpresskeymsg(