rotating the start screen text 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(fpsthe showstartscreen(function will rotate the images on the surface objects that the --wormy!|text is written on the first parameter is the surface object to make rotated copy of the second parameter is the number of degrees to rotate the surface the pygame transform rotate(function doesn' change the surface object you pass itbut rather returns new surface object with the rotated image drawn on it note that this new surface object will probably be larger than the original onesince all surface objects represent rectangular areas and the corners of the rotated surface will stick out past the width and height of original surface the picture below has black rectangle along with slightly rotated version of itself in order to make surface object that can fit the rotated rectangle (which is colored gray in the picture below)it must be larger than the original black rectangle' surface objectthe amount you rotate it is given in degreeswhich is measure of rotation there are degrees in circle not rotated at all is degrees rotating to one quarter counter-clockwise is degrees to rotate clockwisepass negative integer rotating degrees is rotating the image all the way aroundwhich means you end up with the same image as if you rotated it degrees in factif the rotation argument you pass to pygame transform rotate(is or larger