building games with pygame in the above code snippet an eventlist is obtained from the event queue containing the current set of events the for loop then processes each event in turn checking the type and printing an appropriate message you can use this approach to trigger appropriate behaviour such as moving an image around the screen or calculating the players score etc howeverbe aware that if this behaviour takes too long it can make the game difficult to play (although the examples in this and the next are simple enough that this is not problem first pygame application we are now at the point where we can put together what we have looked at so far and create simple pygame application it is common to create hello world style program when using new programming language or using new application framework etc the intention is that the core elements of the language or framework are explored in order to generate the most basic form of an application using the language or framework we will therefore implement the most basic application possible using pygame the application we will create will display pygame windowwith 'hello worldtitle we will then be able to quit the game although technically speaking this isn' gameit does possess the basic architecture of pygame application the simple helloworld game will initialise pygame and the graphical display it will then have main game playing loop that will continue until the user selects to quit the application it will then shut down pygame the display created by the program is shown below for both mac and windows operating systemsto quit the program click on the exit button for the windowing system you are using