set up pygamethe windowand the mouse cursor pygame init( mainclock pygame time clock(line sets up the pygame by calling the pygame init(function line creates pygame time clock(object and stores it in the mainclock variable this object will help us keep the program from running too fast windowsurface pygame display set_mode((windowwidthwindowheight)line creates new surface object which is used for the window displayed on the screen you can specify the width and height of this surface object (and the windowby passing tuple with the windowwidth and windowheight constant variables notice that there' only one argument passed to pygame display set_mode() tuple the arguments for pygame display set_mode(are not two integers but one tuple of two integers pygame display set_caption('dodger'line sets the caption of the window to the string 'dodgerthis caption will appear in the title bar at the top of the window pygame mouse set_visible(falsein dodgerthe mouse cursor shouldn' be visible this is because you want the mouse to be able to move the player' character around the screenbut the mouse cursor would get in the way of the character' image on the screen calling pygame mouse set_visible(falsewill tell pygame to make the cursor not visible fullscreen mode the pygame display set_mode(function has secondoptional parameter you can pass the pygame fullscreen constant to make the window take up the entire screen instead of being in window look at this modification to line windowsurface pygame display set_mode((windowwidthwindowheight)pygame fullscreenit will still be windowwidth and windowheight in size for the windows width and heightbut the image will be stretched larger to fit the screen try running the program wiuth and without fullscreen mode